Skip to content

Commit

Permalink
removed check for stateObj.attributes.unit_of_measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
boern99 committed Jan 7, 2025
1 parent df5fbbd commit 5a99282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialogs/more-info/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const computeShowLogBookComponent = (
}

const stateObj = hass.states[entityId];
if (!stateObj || stateObj.attributes.unit_of_measurement) {
if (!stateObj) {
return false;
}

Expand Down

0 comments on commit 5a99282

Please sign in to comment.