mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 04:46:34 +00:00
Replace inner function with lambda in Idasen Desk (#153862)
This commit is contained in:
@@ -41,16 +41,12 @@ class IdasenDeskCoordinator(DataUpdateCoordinator[int | None]):
|
||||
self._expected_connected = False
|
||||
self._height: int | None = None
|
||||
|
||||
@callback
|
||||
def async_update_data() -> None:
|
||||
self.async_set_updated_data(self._height)
|
||||
|
||||
self._debouncer = Debouncer(
|
||||
hass=self.hass,
|
||||
logger=_LOGGER,
|
||||
cooldown=UPDATE_DEBOUNCE_TIME,
|
||||
immediate=True,
|
||||
function=async_update_data,
|
||||
function=callback(lambda: self.async_set_updated_data(self._height)),
|
||||
)
|
||||
|
||||
async def async_connect(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user