Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed May 19, 2020
1 parent c046efe commit e79f05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/automoli/automoli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AutoMoLi(hass.Hass): # type: ignore
def lg(self, msg: str, *args: Any, icon: Optional[str] = None, repeat: int = 1, **kwargs: Any) -> None:
kwargs.setdefault("ascii_encode", False)
message = f"{f'{icon} ' if icon else ' '}{msg}"
[self.log(message, *args, **kwargs) for _ in range(repeat)]
_ = [self.log(message, *args, **kwargs) for _ in range(repeat)]

def initialize(self) -> None:
"""Initialize a room with AutoMoLi."""
Expand Down Expand Up @@ -280,7 +280,7 @@ def lights_on(self) -> None:
elif isinstance(self.active["light_setting"], int):

if self.active["light_setting"] == 0:
self.lights_off(dict())
self.lights_off({})

else:
for entity in self.lights:
Expand Down

0 comments on commit e79f05b

Please sign in to comment.