Skip to content

Commit

Permalink
misc logging
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Mar 6, 2024
1 parent f48d486 commit 067b4c4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def threephase_amps(self) -> dict:

def check_current_percentage(self):
if not self.alive:
_LOGGER.warning("PowerCanary is dead!")
self.hub.observer.broadcast(command=ObserverTypes.PowerCanaryDead)
if self.current_percentage >= self.model.warning_threshold:
_LOGGER.warning("PowerCanary is caution!")
self.hub.observer.broadcast(command=ObserverTypes.PowerCanaryWarning)

@property
Expand Down

0 comments on commit 067b4c4

Please sign in to comment.