Skip to content

Commit 42c6b4a

Browse files
committed
Type fix
1 parent 3b55157 commit 42c6b4a

File tree

1 file changed

+3
-1
lines changed
  • custom_components/hubitat

1 file changed

+3
-1
lines changed

custom_components/hubitat/hub.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,9 @@ def _update_device_ids(hub_id: str, hass: HomeAssistant) -> None:
572572
dev_ids = list(new_dev.identifiers)
573573
id_set = dev_ids[0]
574574
if len(id_set) == 3:
575-
new_ids = {(id_set[0], f"{id_set[1]}:{id_set[2]}")}
575+
new_ids = {
576+
(cast(tuple[str, str, str], id_set)[0], f"{id_set[1]}:{id_set[2]}")
577+
}
576578
dreg.async_update_device(new_dev.id, new_identifiers=new_ids)
577579
_LOGGER.info(
578580
f"Updated identifiers of device {new_dev.identifiers} to {new_ids}"

0 commit comments

Comments
 (0)