mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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'])
|
||||
|
||||
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
|
||||
def async_added_to_hass(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user