mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
parent
6505019701
commit
0de6a37822
@ -88,7 +88,7 @@ class WorldTidesInfoSensor(Entity):
|
||||
return "High tide at %s" % (tidetime)
|
||||
elif "Low" in str(self.data['extremes'][0]['type']):
|
||||
tidetime = time.strftime('%I:%M %p', time.localtime(
|
||||
self.data['extremes'][1]['dt']))
|
||||
self.data['extremes'][0]['dt']))
|
||||
return "Low tide at %s" % (tidetime)
|
||||
else:
|
||||
return STATE_UNKNOWN
|
||||
|
Loading…
x
Reference in New Issue
Block a user