Skip to content

Commit 1e55292

Browse files
committed
Fix exlude devices: #227
1 parent c8b7cce commit 1e55292

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • custom_components/victron_mqtt

custom_components/victron_mqtt/hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
7979
# Convert string device type exclusions to DeviceType instances
8080
excluded_device_strings = config.get(CONF_EXCLUDED_DEVICES, [])
8181
excluded_device_types: list[DeviceType] = [
82-
dt.code
82+
dt
8383
for device_string in excluded_device_strings
8484
if (dt := DeviceType.from_code(device_string)) is not None
8585
]

0 commit comments

Comments
 (0)