Closed LordTama closed 3 years ago
homekit documentation homekit source (message by IssueLinks)
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
I got the same for an accessory of type alarm_control_panel
, everything was working fine pre 2021.8:
Logger: homeassistant.components.homekit
Source: components/homekit/accessories.py:248
Integration: HomeKit (documentation, issues)
First occurred: 9:34:22 AM (1 occurrences)
Last logged: 9:34:22 AM
Failed to create a HomeKit accessory for alarm_control_panel.home_alarm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 628, in add_bridge_accessory
acc = get_accessory(self.hass, self.driver, state, aid, conf)
File "/usr/src/homeassistant/homeassistant/components/homekit/accessories.py", line 206, in get_accessory
return TYPES[a_type](hass, driver, name, state.entity_id, aid, config)
File "/usr/src/homeassistant/homeassistant/components/homekit/type_security_systems.py", line 87, in __init__
super().__init__(*args, category=CATEGORY_ALARM_SYSTEM)
File "/usr/src/homeassistant/homeassistant/components/homekit/accessories.py", line 248, in __init__
model=model[:MAX_MODEL_LENGTH],
TypeError: 'int' object is not subscriptable
Should be an easy fix, submitted a PR which I hope gets merged in ahead of the next patch version
Same error here with 2021.8.2:
Logger: homeassistant.components.homekit Source: components/homekit/accessories.py:250 Integration: HomeKit (documentation, issues) First occurred: 11:10:58 AM (5 occurrences) Last logged: 11:10:58 AM
Failed to create a HomeKit accessory for cover.zonnescherm Failed to create a HomeKit accessory for cover.slaapkamer Failed to create a HomeKit accessory for cover.kattenkamer Failed to create a HomeKit accessory for cover.computerkamer Failed to create a HomeKit accessory for cover.keuken Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/homekit/init.py", line 628, in add_bridge_accessory acc = get_accessory(self.hass, self.driver, state, aid, conf) File "/usr/src/homeassistant/homeassistant/components/homekit/accessories.py", line 206, in get_accessory return TYPES[a_type](hass, driver, name, state.entity_id, aid, config) File "/usr/src/homeassistant/homeassistant/components/homekit/type_covers.py", line 348, in init super().init( File "/usr/src/homeassistant/homeassistant/components/homekit/type_covers.py", line 277, in init super().init(args, category=category, service=service) File "/usr/src/homeassistant/homeassistant/components/homekit/type_covers.py", line 205, in init super().init(args, category=category) File "/usr/src/homeassistant/homeassistant/components/homekit/accessories.py", line 250, in init firmware_revision=sw_version[:MAX_VERSION_LENGTH], TypeError: 'NoneType' object is not subscriptable
Thanks for the fix. We will wait for the review from @bdraco :)
I confirm the issue is solved since 2021.8.3. Thanks for the quick fix.
The problem
Since my upgrade to 2021.8.1 HASS fail to create HomeKit accessory for my entry gate.
It’s was fine before in 2021.7.X, I have at least one friend with the same exact issue.
What is version of Home Assistant Core has the issue?
2021.8.1
What was the last working version of Home Assistant Core?
2021.7.X
What type of installation are you running?
Home Assistant OS
Integration causing the issue
homekit
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homekit
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response