From db4d2d024eb6ec3ce940781c4fb4e56d08b201e7 Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Mon, 15 Nov 2021 10:01:14 +0100 Subject: [PATCH] Fix last_cleaning sensor (#37) --- custom_components/deebot/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/deebot/sensor.py b/custom_components/deebot/sensor.py index b9690bb..5000ba4 100644 --- a/custom_components/deebot/sensor.py +++ b/custom_components/deebot/sensor.py @@ -267,6 +267,6 @@ async def on_event(event: CleanLogEvent) -> None: self.async_write_ha_state() listener: EventListener = self._vacuum_bot.events.subscribe( - ErrorEvent, on_event + CleanLogEvent, on_event ) self.async_on_remove(listener.unsubscribe)