Skip to content

Commit 0e0f480

Browse files
committed
Remove returns from two functions, not needed.
1 parent dea4e83 commit 0e0f480

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _device_data_climate(
258258
if NONE in avail_schedules:
259259
return device_data
260260

261-
device_data = self._get_schedule_states_with_off(
261+
self._get_schedule_states_with_off(
262262
loc_id, avail_schedules, sel_schedule, device_data
263263
)
264264
return device_data
@@ -272,7 +272,7 @@ def check_reg_mode(self, mode: str) -> bool:
272272

273273
def _get_schedule_states_with_off(
274274
self, location: str, schedules: list[str], selected: str, data: DeviceData
275-
) -> DeviceData:
275+
) -> None:
276276
"""Collect schedules with states for each thermostat.
277277
278278
Also, replace NONE by OFF when none of the schedules are active,
@@ -293,11 +293,7 @@ def _get_schedule_states_with_off(
293293
if all_off:
294294
data["select_schedule"] = OFF
295295

296-
return data
297-
298-
def _check_availability(
299-
self, device: DeviceData, device_data: DeviceData
300-
) -> DeviceData:
296+
def _check_availability(self, device: DeviceData, device_data: DeviceData) -> None:
301297
"""Helper-function for _get_device_data().
302298
303299
Provide availability status for the wired-commected devices.
@@ -320,8 +316,6 @@ def _check_availability(
320316
if "P1 does not seem to be connected to a smart meter" in msg:
321317
device_data["available"] = False
322318

323-
return device_data
324-
325319
def _get_device_data(self, dev_id: str) -> DeviceData:
326320
"""Helper-function for _all_device_data() and async_update().
327321

0 commit comments

Comments
 (0)