We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unit: false
1 parent 96dab61 commit a01197eCopy full SHA for a01197e
src/entity.js
@@ -24,7 +24,11 @@ export const entityValue = (stateObj, config) =>
24
config.attribute !== undefined ? stateObj.attributes[config.attribute] : stateObj.state;
25
26
export const entityUnit = (stateObj, config) =>
27
- config.attribute !== undefined ? config.unit : config.unit || stateObj.attributes.unit_of_measurement;
+ config.unit === false
28
+ ? null
29
+ : config.attribute !== undefined
30
+ ? config.unit
31
+ : config.unit || stateObj.attributes.unit_of_measurement;
32
33
export const entityStateDisplay = (hass, stateObj, config) => {
34
if (isUnavailable(stateObj)) {
0 commit comments