Skip to content

Commit a185871

Browse files
committed
Remove more list() constructs
1 parent a333151 commit a185871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/smile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def _check_availability(
255255
if details["dev_class"] == "heater_central" and details["name"] != "OnOff":
256256
device_data["available"] = True
257257
for data in self._notifications.values():
258-
for msg in list(data.values()):
258+
for msg in data.values():
259259
if "no OpenTherm communication" in msg:
260260
device_data["available"] = False
261261

@@ -550,7 +550,7 @@ async def async_update(self) -> list[GatewayData | dict[str, DeviceData]]:
550550

551551
for dev_id, dev_dict in self.gw_devices.items():
552552
data = self._get_device_data(dev_id)
553-
for key, value in list(data.items()):
553+
for key, value in data.items():
554554
if key in dev_dict:
555555
dev_dict[key] = value # type: ignore [literal-required]
556556

@@ -559,7 +559,7 @@ async def async_update(self) -> list[GatewayData | dict[str, DeviceData]]:
559559
if item == "binary_sensors":
560560
notifs = self._notifications
561561
if item in dev_dict:
562-
for key, value in list(data.items()):
562+
for key, value in data.items():
563563
update_helper(
564564
data,
565565
self.gw_devices,

0 commit comments

Comments
 (0)