Support availability for ISY994 devices (#85928)
This commit is contained in:
parent
b81453cb6b
commit
dfc33f858a
5 changed files with 111 additions and 23 deletions
|
@ -41,7 +41,6 @@ async def async_setup_entry(
|
|||
) -> None:
|
||||
"""Set up ISY/IoX select entities from config entry."""
|
||||
isy_data: IsyData = hass.data[DOMAIN][config_entry.entry_id]
|
||||
isy = isy_data.root
|
||||
device_info = isy_data.devices
|
||||
entities: list[ISYAuxControlIndexSelectEntity | ISYRampRateSelectEntity] = []
|
||||
|
||||
|
@ -68,7 +67,7 @@ async def async_setup_entry(
|
|||
entity_detail = {
|
||||
"node": node,
|
||||
"control": control,
|
||||
"unique_id": f"{isy.uuid}_{node.address}_{control}",
|
||||
"unique_id": f"{isy_data.uid_base(node)}_{control}",
|
||||
"description": description,
|
||||
"device_info": device_info.get(node.primary_node),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue