Skip to content

Commit 16a1c9d

Browse files
committed
resolve ruff findings
1 parent be0e34d commit 16a1c9d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

custom_components/victron/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def is_on(self) -> bool:
106106
self.description.slave,
107107
self.description.key,
108108
)
109-
return cast(bool, data)
109+
return cast("bool", data)
110110

111111
@property
112112
def available(self) -> bool:

custom_components/victron/sensor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def _handle_coordinator_update(self) -> None:
191191
"The reported value %s for entity %s isn't a decobale value. Please report this error to the integrations maintainer",
192192
data,
193193
self._attr_name,
194-
exc_info=1,
195194
)
196195
else:
197196
self._attr_native_value = data

0 commit comments

Comments
 (0)