Closed douglas-keay closed 1 year ago
Same problem. Existing device (Tapo P100) was marked as "device not supported anymore". After delete it (from config too) I can't add it. But my Tapo P110, unavailable when I update integration, still work properly
Same problem with a L900 light stripe. One of the two I have became unavailable. After deleting it, I couldn't configure it back. The other L900 kept working flawlessly. Back to 1.3.7 and I could add it again with no problem.
v1.5.1 should fix the issue
Unfortunately, I still have errors with version 1.5.1. It happens as before, one of the light stripes keeps working and the other one doesn't. Same model and firmware version.
2023-01-31 10:13:55.075 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 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/tapo/switch.py", line 24, in async_setup_entry _setup_from_coordinator(coordinator, async_add_devices) File "/config/custom_components/tapo/switch.py", line 40, in _setup_from_coordinator if coordinator.data.model.lower() in SUPPORTED_DEVICE_AS_SWITCH: AttributeError: 'NoneType' object has no attribute 'model' 2023-01-31 10:13:55.080 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 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/tapo/light.py", line 37, in async_setup_entry _setup_from_coordinator(coordinator, async_add_devices) File "/config/custom_components/tapo/light.py", line 52, in _setup_from_coordinator if model.lower() in coordinator.data.model.lower(): AttributeError: 'NoneType' object has no attribute 'model' 2023-01-31 10:13:55.085 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 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/tapo/sensor.py", line 39, in async_setup_entry if coordinator.data.model.lower() in SUPPORTED_DEVICE_AS_SWITCH_POWER_MONITOR: AttributeError: 'NoneType' object has no attribute 'model' 2023-01-31 10:13:55.140 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 438, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 494, in _async_add_entity entity.add_to_platform_start( File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 633, in add_to_platform_start if self.unique_id is None or self.device_class is None: File "/config/custom_components/tapo/sensor.py", line 59, in unique_id return super().unique_id + "_" + self._sensor_config.name.replace(" ", "_") TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' 2023-01-31 10:13:55.177 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 297, in _async_setup_platform await asyncio.gather(*pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 438, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 494, in _async_add_entity entity.add_to_platform_start( File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 633, in add_to_platform_start if self.unique_id is None or self.device_class is None: File "/config/custom_components/tapo/sensor.py", line 59, in unique_id return super().unique_id + "_" + self._sensor_config.name.replace(" ", "_") TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
v1.5.1 should fix the issue
Same problem on v1.5.1
Same problem here on v1.5.1. , but ...!!
All my plugs works perfect, but my L920 strip is unavailable. On trying re-adding, I receive "Failed to connect" message. I cannot remember if the strip was On when I was trying to connect it, but I just tried again with the strip On, and it connected @HomeAssistant. (I think I made no other updates between unsuccessful and successful tries)
Maybe it can help someone, or Andrea to debug it.
Version 1.6.1 should fix this issue or log more detailed error
Version of the integration
1.4.0
Configuration
Describe the bug
After updating to the newest version my plugs stopped being avilable. I removed and tried to re add the device, the first plug was successfull but the second
failed to connect
. I have tried with all the other 3 plugs I own all of which return the same error. All plugs are same model and FW buildDebug log