Skip to content

Commit

Permalink
Remove warning when there are no scheduled activities (schedule is di…
Browse files Browse the repository at this point in the history
…sabled). Debug log only.
  • Loading branch information
MizterB committed Aug 21, 2024
1 parent c1adf1d commit 33c8e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/infinitude_beyond/infinitude/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def activity_current(self) -> Activity | None:
return None
activity = next((a for a in Activity if a.value == val), None)
if activity is None:
_LOGGER.warning("'%s' is an unknown Activity", val)
_LOGGER.debug("'%s' is an unknown Activity", val)
return activity

@property
Expand All @@ -724,8 +724,8 @@ def activity_scheduled(self) -> Activity | None:
(a for a in Activity if a.value == self._activity_scheduled), None
)
if activity is None:
_LOGGER.warning(
"'%s' is an unknown Sechduled Activity", self._activity_scheduled
_LOGGER.debug(
"'%s' is an unknown Scheduled Activity", self._activity_scheduled
)
return activity

Expand Down

0 comments on commit 33c8e8f

Please sign in to comment.