File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ def item_count(self) -> int:
9595 """Return the item-count."""
9696 return self ._count
9797
98- def _all_appliances (self ) -> bool :
98+ def _get_appliances (self ) -> bool :
9999 """Collect all appliances with relevant info.
100100
101101 Also, collect the P1 smartmeter info from a location
102102 as this one is not available as an appliance.
103103 """
104104 self ._count = 0
105- self ._all_locations ()
105+ self ._get_locations ()
106106
107107 for appliance in self ._domain_objects .findall ("./appliance" ):
108108 appl = Munch ()
@@ -219,7 +219,7 @@ def _add_p1_smartmeter_info(self) -> None:
219219
220220 self ._create_gw_entities (appl )
221221
222- def _all_locations (self ) -> None :
222+ def _get_locations (self ) -> None :
223223 """Collect all locations."""
224224 loc = Munch ()
225225 locations = self ._domain_objects .findall ("./location" )
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ def item_count(self) -> int:
8383 """Return the item-count."""
8484 return self ._count
8585
86- def _all_appliances (self ) -> None :
86+ def _get_appliances (self ) -> None :
8787 """Collect all appliances with relevant info."""
8888 self ._count = 0
89- self ._all_locations ()
89+ self ._get_locations ()
9090
9191 self ._create_legacy_gateway ()
9292 # For legacy P1 collect the connected SmartMeter info
@@ -137,7 +137,7 @@ def _all_appliances(self) -> None:
137137 self ._create_gw_entities (appl )
138138 self ._reorder_devices ()
139139
140- def _all_locations (self ) -> None :
140+ def _get_locations (self ) -> None :
141141 """Collect all locations."""
142142 loc = Munch ()
143143
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def get_all_gateway_entities(self) -> None:
8181 Collect and add switching- and/or pump-group entities.
8282 Finally, collect the data and states for each entity.
8383 """
84- self ._all_appliances ()
84+ self ._get_appliances ()
8585 if group_data := self ._get_groups ():
8686 self .gw_entities .update (group_data )
8787
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def get_all_gateway_entities(self) -> None:
111111 Collect and add switching- and/or pump-group entities.
112112 Finally, collect the data and states for each entity.
113113 """
114- if self ._all_appliances ():
114+ if self ._get_appliances ():
115115 if self ._is_thermostat :
116116 self .therms_with_offset_func = (
117117 self ._get_appliances_with_offset_functionality ()
You can’t perform that action at this time.
0 commit comments