Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

yeelink.light.bslamp2 stop working #99

Open
tal6203 opened this issue Dec 26, 2024 · 0 comments
Open

yeelink.light.bslamp2 stop working #99

tal6203 opened this issue Dec 26, 2024 · 0 comments

Comments

@tal6203
Copy link

tal6203 commented Dec 26, 2024

Detected that custom integration 'miio_yeelink' calls async_forward_entry_setup for integration, miio_yeelink with title: Xiaomi Yeelink and entry_id:, which is deprecated, await async_forward_entry_setups instead at custom_components/miio_yeelink/init.py, line 159: hass.async_create_task(hass.config_entries.async_forward_entry_setup(config_entry, plat)). This will stop working in Home Assistant 2025.6, please create a bug report at https://github.com/al-one/hass-miio-yeelink/issues
Detected that custom integration 'miio_yeelink' sets option flow config_entry explicitly, which is deprecated at custom_components/miio_yeelink/config_flow.py, line 106: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/al-one/hass-miio-yeelink/issues

Detected code that calls async_forward_entry_setup for integration miio_yeelink with title: Xiaomi Yeelink and entry_id:, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1, please report this issue

Error while setting up miio_yeelink platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/miio_yeelink/light.py", line 49, in async_setup_entry
await async_setup_platform(hass, config, async_add_entities)
File "/config/custom_components/miio_yeelink/light.py", line 62, in async_setup_platform
entity = YeelightEntity(config)
File "/config/custom_components/miio_yeelink/init.py", line 428, in init
self._device = Yeelight(ip=host, token=token)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/miio/integrations/light/yeelight/yeelight.py", line 274, in init
self._model_info = Yeelight._spec_helper.get_model_info(self.model)
^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 194, in model
return self.info().model
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/miio/click_common.py", line 184, in _wrap
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 148, in info
return self._fetch_info()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 153, in _fetch_info
devinfo = DeviceInfo(self.send("miIO.info"))
~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 107, in send
return self._protocol.send(
~~~~~~~~~~~~~~~~~~~^
command, parameters, retry_count, extra_parameters=extra_parameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/miio/miioprotocol.py", line 161, in send
self.send_handshake()
~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/miio/miioprotocol.py", line 74, in send_handshake
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device XXX.XXX.X.XXX

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant