mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Bump PyISY to 3.1.5 and fix bad Z-Wave properties from eisy (#85900)
This commit is contained in:
parent
c478e503e5
commit
913bc827ba
@ -280,32 +280,32 @@ def _is_sensor_a_binary_sensor(isy_data: IsyData, node: Group | Node) -> bool:
|
||||
def _generate_device_info(node: Node) -> DeviceInfo:
|
||||
"""Generate the device info for a root node device."""
|
||||
isy = node.isy
|
||||
basename = node.name
|
||||
device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, f"{isy.uuid}_{node.address}")},
|
||||
manufacturer=node.protocol,
|
||||
name=f"{basename} ({(str(node.address).rpartition(' ')[0] or node.address)})",
|
||||
manufacturer=node.protocol.title(),
|
||||
name=node.name,
|
||||
via_device=(DOMAIN, isy.uuid),
|
||||
configuration_url=isy.conn.url,
|
||||
suggested_area=node.folder,
|
||||
)
|
||||
|
||||
# ISYv5 Device Types can provide model and manufacturer
|
||||
model: str = "Unknown"
|
||||
model: str = str(node.address).rpartition(" ")[0] or node.address
|
||||
if node.node_def_id is not None:
|
||||
model = str(node.node_def_id)
|
||||
model += f": {node.node_def_id}"
|
||||
|
||||
# Numerical Device Type
|
||||
if node.type is not None:
|
||||
model += f" ({node.type})"
|
||||
|
||||
# Get extra information for Z-Wave Devices
|
||||
if node.protocol == PROTO_ZWAVE:
|
||||
device_info[ATTR_MANUFACTURER] = f"Z-Wave MfrID:{node.zwave_props.mfr_id}"
|
||||
if node.protocol == PROTO_ZWAVE and node.zwave_props.mfr_id != "0":
|
||||
device_info[
|
||||
ATTR_MANUFACTURER
|
||||
] = f"Z-Wave MfrID:{int(node.zwave_props.mfr_id):#0{6}x}"
|
||||
model += (
|
||||
f" Type:{node.zwave_props.devtype_gen} "
|
||||
f"ProductTypeID:{node.zwave_props.prod_type_id} "
|
||||
f"ProductID:{node.zwave_props.product_id}"
|
||||
f"Type:{int(node.zwave_props.prod_type_id):#0{6}x} "
|
||||
f"Product:{int(node.zwave_props.product_id):#0{6}x}"
|
||||
)
|
||||
device_info[ATTR_MODEL] = model
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Universal Devices ISY/IoX",
|
||||
"integration_type": "hub",
|
||||
"documentation": "https://www.home-assistant.io/integrations/isy994",
|
||||
"requirements": ["pyisy==3.1.4"],
|
||||
"requirements": ["pyisy==3.1.5"],
|
||||
"codeowners": ["@bdraco", "@shbatm"],
|
||||
"config_flow": true,
|
||||
"ssdp": [
|
||||
|
@ -1696,7 +1696,7 @@ pyirishrail==0.0.2
|
||||
pyiss==1.0.1
|
||||
|
||||
# homeassistant.components.isy994
|
||||
pyisy==3.1.4
|
||||
pyisy==3.1.5
|
||||
|
||||
# homeassistant.components.itach
|
||||
pyitachip2ir==0.0.7
|
||||
|
@ -1215,7 +1215,7 @@ pyiqvia==2022.04.0
|
||||
pyiss==1.0.1
|
||||
|
||||
# homeassistant.components.isy994
|
||||
pyisy==3.1.4
|
||||
pyisy==3.1.5
|
||||
|
||||
# homeassistant.components.kaleidescape
|
||||
pykaleidescape==1.0.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user