diff --git a/plugwise/__init__.py b/plugwise/__init__.py index c5f6042777..cd8f5dbda3 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -638,8 +638,8 @@ async def set_schedule_state( if name is None: if schedule_name := self._last_active[loc_id]: name = schedule_name - else: - return + else: + return assert isinstance(name, str) if self._smile_legacy: