Commit 262f97b
committed
Fix standalone execution without Home Assistant dependency
Import INVERTER_PROFILES from emulator.models instead of directly
from custom_components package. The models.py already uses importlib
to load the module without triggering Home Assistant imports.
This allows the emulator to run on any PC without requiring Home
Assistant to be installed.1 parent 6034069 commit 262f97b
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
| |||
0 commit comments