home-assistant-tapo-p100: Integration doesn't work with Home Assistant 2022.9.2

Version of the custom_component

v1.2.15

Configuration

Added using UI

image


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




About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 32 (4 by maintainers)

Most upvoted comments

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.

With my NUC 11 Pro (NUC11TNHi3, Core i3-1115G4), Ubuntu 22.04.01 and Home Assistant 2022.9.4 (Docker), the integration doesn’t work at all. I add it via HACS, do a restart, but can’t find anything with ‘Tapo’ under ‘integrations’.

Did you clear the Cache with Shift + F5?