Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/hassgraph/hass_graph.star
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def calculate_hourly_average(data):
index = 0

for entry in data:
if entry["state"] == "unavailable":
if entry["state"] == "unavailable" or entry["state"] == "unknown":
continue

timestamp = entry["last_changed"]
Expand Down Expand Up @@ -135,7 +135,7 @@ def calc_stats(timezone, data):
count = 0

for entry in data:
if entry["state"] == "unavailable":
if entry["state"] == "unavailable" or entry["state"] == "unknown":
continue

value = float(entry["state"])
Expand Down
Loading