Home Assistant Integration for Sengled Bulbs. This is a custom component to allow control of Sengled Bulbs in Homeassistant using the unofficial Sengled API. Please note this mimics the Sengled app and therefore Sengled may cut off access at anytime.
Describe the bug
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use await hass.async_add_executor_job(); at custom_components/sengledapi/sengledapi/devices/request.py, line 40: r = requests.post(self._url, headers=self._header, data=self._payload)
To Reproduce
Steps to reproduce the behavior:
On Start/Restart
Expected behavior
Successful start of the component.
System configuration
System: Bare Metal
HA Version: 2023.3.6
SengledApi Version: v0.2.5
configuration.yaml
sengledapi:
username: ***********@**.com
password: ***********
country: us
wifi: true
Describe the bug RuntimeError: Blocking calls must be done in the executor or a separate thread; Use
await hass.async_add_executor_job()
; at custom_components/sengledapi/sengledapi/devices/request.py, line 40: r = requests.post(self._url, headers=self._header, data=self._payload)To Reproduce Steps to reproduce the behavior:
Expected behavior Successful start of the component.
System configuration System: Bare Metal HA Version: 2023.3.6 SengledApi Version: v0.2.5
configuration.yaml
home-assistant.log