jfarmer08 / ha-sengledapi

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.
Apache License 2.0
106 stars 35 forks source link

[Bug] #86

Open UniqueOps opened 1 year ago

UniqueOps commented 1 year ago

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:

  1. 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

home-assistant.log