sbidy / wiz_light

A WiZ Light integration for Home Assistant
MIT License
341 stars 68 forks source link

Too many "No bulb type can be detected - fall back to full feature" errors. #19

Closed danVnest closed 4 years ago

danVnest commented 4 years ago

When starting up Home Assistant I get many of the below errors (more than once for each light).

2020-04-24 12:14:02 ERROR (MainThread) [custom_components.wiz_light.light] No bulb type can be detected - fall back to full feature

The lights do work properly afterwards, so I'm guessing Home Assistant is trying to get the supported_features property before await self.get_bulb_type() is complete in light.py.

Perhaps move the error message to get_bulb_type() so it only triggers once failed rather than also when uninitialised?

sbidy commented 4 years ago

fixed with last commit - removed the "error" because the light will be initialized after the async call was made.