Integration doesn't work with Home Assistant 2022.9.2
See original GitHub issueVersion of the custom_component
v1.2.15
Configuration
Added using UI
2022-09-12 09:16:00.772 INFO (MainThread) [homeassistant.components.switch] Setting up switch.tapo
2022-09-12 09:16:00.785 INFO (MainThread) [homeassistant.components.light] Setting up light.tapo
2022-09-12 09:16:00.813 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.tapo
2022-09-12 09:16:00.822 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.tapo
2022-09-12 09:16:00.848 ERROR (MainThread) [homeassistant.components.switch] Error while setting up tapo platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tapo/switch.py", line 19, in async_setup_entry
_setup_from_coordinator(coordinator, async_add_devices)
File "/config/custom_components/tapo/switch.py", line 33, in _setup_from_coordinator
if coordinator.data.model.lower() in SUPPORTED_DEVICE_AS_SWITCH:
AttributeError: 'NoneType' object has no attribute 'model'
2022-09-12 09:16:00.860 ERROR (MainThread) [homeassistant.components.light] Error while setting up tapo platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tapo/light.py", line 34, in async_setup_entry
_setup_from_coordinator(coordinator, async_add_devices)
File "/config/custom_components/tapo/light.py", line 49, in _setup_from_coordinator
if model.lower() in coordinator.data.model.lower():
AttributeError: 'NoneType' object has no attribute 'model'
2022-09-12 09:16:00.885 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tapo platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/tapo/sensor.py", line 31, in async_setup_entry
if coordinator.data.model.lower() in SUPPORTED_DEVICE_AS_SWITCH_POWER_MONITOR:
AttributeError: 'NoneType' object has no attribute 'model'
2022-09-12 09:16:00.964 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for iPhone di Damiano: 7 sent, 500 allowed, 0 errors, resets in 16:43:59
2022-09-12 09:16:04.227 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 503, in _async_add_entity
if entity.unique_id is not None:
File "/config/custom_components/tapo/tapo_sensor_entity.py", line 43, in unique_id
return super().unique_id + "_" + self.sensor_config.name.replace(" ", "_")
File "/config/custom_components/tapo/tapo_entity.py", line 29, in unique_id
return self.coordinator.data.device_id
AttributeError: 'NoneType' object has no attribute 'device_id'
2022-09-12 09:16:04.303 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up tapo platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 503, in _async_add_entity
if entity.unique_id is not None:
File "/config/custom_components/tapo/tapo_sensor_entity.py", line 43, in unique_id
return super().unique_id + "_" + self.sensor_config.name.replace(" ", "_")
File "/config/custom_components/tapo/tapo_entity.py", line 29, in unique_id
return self.coordinator.data.device_id
Describe the bug
After upgrading to Home Assistant 2022.9.2 the integration doesn’t work
Debug log
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:32 (4 by maintainers)
Top Results From Across the Web
Troubleshooting your configuration - Home Assistant
It can happen that some integrations either do not work right away or stop working after Home Assistant has been running for a...
Read more >New Pushover Integration UI in HASS 2022.9.2 - Configuration
Looking at integrations, I do see pushover, but how do I see how it is configured? I cannot run a re-configure or see...
Read more >Could not add new integrations - Home Assistant Community
Hi all, I currently have the problem, that I can not add new integrations. When I press the button “+ Add Integration”, a...
Read more >Debugging issues after upgrade to 2022.9 - Configuration
It is as if the docker networking falls apart and addons/integrations slowly stop working. The logs look as below:
Read more >2022.9 causing issues with my Bluetooth and devices
Im not sure how to start trying to fix this… this is a bit more info: Logger: homeassistant.setup. Source: components/bluetooth/match.py:198
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh this is good to know, I literally just upgraded to 2022.9.2 a couple of hours ago and was starting to troubleshoot why 3 of my devices (all Tapo units) weren’t coming back online.
@loryanstrant all the same. P100 and all are on the newest version.