Skip to content

Commit

Permalink
fix weather entity
Browse files Browse the repository at this point in the history
  • Loading branch information
siku2 committed May 9, 2021
1 parent 71fb841 commit 7a955db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weatherlink/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def condition(self):
if c.hum > 75:
return "fog"

if state := self.states.get("sun.sun"):
if state := self.hass.states.get("sun.sun"):
if state.state == "below_horizon":
return "clear-night"

Expand Down

0 comments on commit 7a955db

Please sign in to comment.