home-assistant-tapo-p100: Color/temp control not working on latest update
Version of the custom_component
Latest
Configuration
N/A
Describe the bug
Brightness still works, no color or temp control though
Debug log
Logger: homeassistant.components.websocket_api.http.connection
Source: components/light/__init__.py:485
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:33:13 AM (11 occurrences)
Last logged: 12:01:59 PM
[139913444255728] type NoneType doesn't define __round__ method
[139913468791728] type NoneType doesn't define __round__ method
[139913453106128] type NoneType doesn't define __round__ method
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 642, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 681, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 679, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 235, in async_handle_light_on_service
await light.async_turn_on(**params)
File "/config/custom_components/tapo/light.py", line 75, in async_turn_on
await self._tapo_coordinator.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 200, in async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 260, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 485, in state_attributes
data[ATTR_HS_COLOR] = (round(hs_color[0], 3), round(hs_color[1], 3))
TypeError: type NoneType doesn't define __round__ method
Logger: homeassistant.components.light
Source: components/light/__init__.py:485
Integration: Light (documentation, issues)
First occurred: 11:32:05 AM (2 occurrences)
Last logged: 11:32:05 AM
Error adding entities for domain light with platform tapo
Error while setting up tapo platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 317, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 485, in state_attributes
data[ATTR_HS_COLOR] = (round(hs_color[0], 3), round(hs_color[1], 3))
TypeError: type NoneType doesn't define __round__ method
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (13 by maintainers)
Thank you too. Now I merge the branch into the main branch. You can use it from Hacs 😃
You’ve cracked it! Well done!
Works perfectly
Removed HACS version Deleted integration Copied custom_components/tapo from colour branch into custom_components Restart Added integration
Colour wheel appears but when moving it around I get Decryption failed error and then server disconnection error.
Both logs you can find here: https://pastebin.com/Ta0ZkGyt Pass: tapotest
Thank you again, I will work for a fix