File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def __init__(self) -> None:
3838 self ._count : int
3939 self ._domain_objects : etree
4040 self ._on_off_device : bool
41- self .gw_entities : dict [str , GwEntityData ]
41+ self .gw_entities : dict [str , GwEntityData ] = {}
4242 self .smile_name : str
4343 self .smile_type : str
4444
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class SmileData(SmileHelper):
2828 def __init__ (self ) -> None :
2929 """Init."""
3030 self ._smile_props : SmileProps
31- self .gw_entities : dict [str , GwEntityData ]
31+ self ._zones : dict [str , GwEntityData ] = {}
3232 SmileHelper .__init__ (self )
3333
3434 def _all_entity_data (self ) -> None :
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ def __init__(
5252 smile_type : str ,
5353 smile_version : Version | None ,
5454 smile_zigbee_mac_address : str | None ,
55- gw_entities : dict [str , GwEntityData ] = {},
5655 ) -> None :
5756 """Set the constructor for this class."""
5857 self ._cooling_present = False
@@ -111,7 +110,6 @@ async def async_update(self) -> dict[str, GwEntityData]:
111110 LOGGER .info (
112111 "Performing daily full-update, reload the Plugwise integration when a single entity becomes unavailable."
113112 )
114- self .gw_entities : dict [str , GwEntityData ] = {}
115113 try :
116114 await self .full_xml_update ()
117115 self .get_all_gateway_entities ()
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ def __init__(
6060 smile_name : str ,
6161 smile_type : str ,
6262 smile_version : Version | None ,
63- _zones : dict [str , GwEntityData ] = {},
64- gw_entities : dict [str , GwEntityData ] = {},
6563 ) -> None :
6664 """Set the constructor for this class."""
6765 self ._cooling_present = _cooling_present
@@ -116,8 +114,8 @@ async def async_update(self) -> dict[str, GwEntityData]:
116114
117115 Any change in the connected entities will be detected immediately.
118116 """
119- self .gw_entities : dict [ str , GwEntityData ] = {}
120- self ._zones : dict [ str , GwEntityData ] = {}
117+ self ._zones = {}
118+ self .gw_entities = {}
121119 try :
122120 await self .full_xml_update ()
123121 self .get_all_gateway_entities ()
You can’t perform that action at this time.
0 commit comments