hcoohb / hass-yeelightbt

Home assistant custom component for Yeelight bluetooth
49 stars 15 forks source link

[Bug] failure after Home Assistant Update 2024.1 #62

Closed Dual-0 closed 9 months ago

Dual-0 commented 9 months ago

Light

Yeelight Bedside

Yeelight Bt version

v1.3.0

Home-assistant installation type

Home Assistant Container (docker)

Home-assistant version

2024.1

Home-assistant bluetooth integration (2022.8+)

Yes

Describe the issue

When adding the integration it shows: {"message":"Invalid handler specified"}

Debugging procedure followed:

Any additional comments

No response

Logs from the issue

Logger: homeassistant.config_entries Source: config_entries.py:2087 First occurred: 23:36:20 (2 occurrences) Last logged: 23:46:56

Error occurred loading flow for integration yeelight_bt: cannot import name 'BluetoothScanningMode' from 'homeassistant.components.bluetooth.models' (/usr/src/homeassistant/homeassistant/components/bluetooth/models.py)

xekil commented 9 months ago

same error

xekil commented 9 months ago

Fix work, thank you

golgothar commented 9 months ago

Same error and debugging procedure doesnt work. error : Error occurred loading flow for integration yeelight_bt: cannot import name 'BluetoothScanningMode' from 'homeassistant.components.bluetooth.models' (/usr/src/homeassistant/homeassistant/components/bluetooth/models.py)

Dvalin21 commented 9 months ago

Same error receiving the following

Error Config flow could not be loaded: {"message":"Invalid handler specified"}

golgothar commented 9 months ago

The code modification in the config flow file works.

hcoohb commented 9 months ago

It should be fixed in latest release. Thanks for reporting and the PR!