mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Don't use executor for lutron subscription (#75726)
This commit is contained in:
parent
2df20e7a42
commit
3aa75f3fcc
@ -124,9 +124,7 @@ class LutronDevice(Entity):
|
|||||||
|
|
||||||
async def async_added_to_hass(self):
|
async def async_added_to_hass(self):
|
||||||
"""Register callbacks."""
|
"""Register callbacks."""
|
||||||
self.hass.async_add_executor_job(
|
self._lutron_device.subscribe(self._update_callback, None)
|
||||||
self._lutron_device.subscribe, self._update_callback, None
|
|
||||||
)
|
|
||||||
|
|
||||||
def _update_callback(self, _device, _context, _event, _params):
|
def _update_callback(self, _device, _context, _event, _params):
|
||||||
"""Run when invoked by pylutron when the device state changes."""
|
"""Run when invoked by pylutron when the device state changes."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user