File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def _power_data_energy_diff(
188188
189189 def _create_gw_entities (self , appl : Munch ) -> None :
190190 """Helper-function for creating/updating gw_entities."""
191- self .gw_entities [appl .dev_id ] = {"dev_class" : appl .pwclass }
191+ self .gw_entities [appl .entity_id ] = {"dev_class" : appl .pwclass }
192192 self ._count += 1
193193 for key , value in {
194194 "available" : appl .available ,
@@ -204,7 +204,7 @@ def _create_gw_entities(self, appl: Munch) -> None:
204204 }.items ():
205205 if value is not None or key == "location" :
206206 appl_key = cast (ApplianceType , key )
207- self .gw_entities [appl .dev_id ][appl_key ] = value
207+ self .gw_entities [appl .entity_id ][appl_key ] = value
208208 self ._count += 1
209209
210210 def _entity_switching_group (
You can’t perform that action at this time.
0 commit comments