Skip to content

Commit

Permalink
Merge pull request #598 from mk-maddin:master
Browse files Browse the repository at this point in the history
Fix NoneType value for blade.reset_at property
  • Loading branch information
MTrab authored May 6, 2024
2 parents 5f38376 + fe6b3bc commit bf2b3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/landroid_cloud/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
suggested_display_precision=0,
value_fn=lambda landroid: (
round(landroid.blades["reset_at"] / 60, 2)
if "reset_at" in landroid.blades
if "reset_at" in landroid.blades and not landroid.blades["reset_at"] is None
else None
),
icon="mdi:history",
Expand Down

0 comments on commit bf2b3cc

Please sign in to comment.