mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
fixed async function called in a thread (#11882)
This commit is contained in:
parent
990e076c2c
commit
eea7e2fa2d
@ -220,7 +220,7 @@ class XiaomiDevice(Entity):
|
|||||||
self.parse_voltage(device['data'])
|
self.parse_voltage(device['data'])
|
||||||
|
|
||||||
def _add_push_data_job(self, *args):
|
def _add_push_data_job(self, *args):
|
||||||
self.hass.async_add_job(self.push_data, *args)
|
self.hass.add_job(self.push_data, *args)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_added_to_hass(self):
|
def async_added_to_hass(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user