-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for light component (rgb) fails - error in logs #96
Comments
Hi,
Restart HA and let me know whether you still get the errors. |
Hi, I changed:
With:
But get en error in the loggings: Error setting up entry xxx@xxx for light |
Python is very picky with indentation, github copy and paste might have messed it up... I think the |
Indeed, indentation problem. |
Fixed in 1.5alpha2 by #97 |
Describe the bug
RGB light is working correct, but I still have some errors in the loggings.
Errors:
Logboekdetails (ERROR)
Logger: homeassistant.helpers.entity
Source: custom_components/tahoma/light.py:160
First occurred: 8:06:58 (327 occurrences)
Last logged: 10:58:22
Update for light.light_terras_rgb fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/tahoma/light.py", line 160, in update
CORE_BLUE_COLOR_INTENSITY_STATE
TypeError: color_RGB_to_hs() missing 2 required positional arguments: 'iG' and 'iB'
Environment (please complete the following information):
Device: (if your problem is related to a specific device)
The text was updated successfully, but these errors were encountered: