From 3aa75f3fccf47224ad59b141d39b55e7180e823a Mon Sep 17 00:00:00 2001 From: uvjustin <46082645+uvjustin@users.noreply.github.com> Date: Tue, 26 Jul 2022 04:32:00 +0800 Subject: [PATCH] Don't use executor for lutron subscription (#75726) --- homeassistant/components/lutron/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/lutron/__init__.py b/homeassistant/components/lutron/__init__.py index b2b01aa3c44..1583d8b74eb 100644 --- a/homeassistant/components/lutron/__init__.py +++ b/homeassistant/components/lutron/__init__.py @@ -124,9 +124,7 @@ class LutronDevice(Entity): async def async_added_to_hass(self): """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): """Run when invoked by pylutron when the device state changes."""