Skip to content

Commit

Permalink
Fix to remove extra "Lost" entries
Browse files Browse the repository at this point in the history
in some circumstances
  • Loading branch information
malcolmrigg authored Feb 14, 2019
1 parent efc6f30 commit a47a1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasley-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class WeasleyClockCard extends HTMLElement {
(state.attributes.message ? state.attributes.message : state.state)
: state.state
)
: "Lost";
: "not_home";
if (this._hass.states["zone." + stateStr])
{
stateStr = this._hass.states["zone." + stateStr].attributes.friendly_name;
Expand Down

0 comments on commit a47a1a7

Please sign in to comment.