Mold_indicator.py fixed not to include spaces or dots in attribute names#11694
Conversation
mold_indicator should be fixed not to include spaces or dots in attribute names https://community.home-assistant.io/t/how-to-show-sensor-attribute-est-crit-temp-in-customize-template-and-extra-badge/39451
|
thanks for the request, tried to use the sensor and declare attributes as extra_badges which isn't possible for Est. Crit. Temp If i might add to the request: don't use capitals on the attributes either: Dewpoint , Est. Crit. Temp which would suggest changing the title into: Cheers, |
| _LOGGER = logging.getLogger(__name__) | ||
|
|
||
| ATTR_CRITICAL_TEMP = 'Est. Crit. Temp' | ||
| ATTR_CRITICAL_TEMP = 'EstimatedCriticalTemp' |
There was a problem hiding this comment.
Attributes should be lowercase snakecase.
There was a problem hiding this comment.
yes indeed please. Change EstimatedCriticalTemp in estimated_critical_temp
is this updated now, and do we need to change anything in the HA setup?
just using platform: most_indicator as is.
No need to put mold_indicator.py in custom_components ?
Cheers,
Marius
|
Can you guys please update the mold indicator docs? I used to use this, then with this breaking change, I see that (from the docs) my config remains the same (the example in the docs is the same old example) However I am getting "unavailable" in the ui... PLease can you provide a bit more clartity around this change and what is expected from the user in order to keep using the sensor? Thanks |
|
Hm, I am not sure why this change would break anything, do you have any idea @MartinHjelmare @Danielhiversen ? |
|
A template sensor using the attribute will probably be broken. @jjanderson Please open an issue if you still can not make it work. |
|
hope this helps: don't watch the dropped % ...;-) didn't see that before btw, so might be because of the new sensor definition, or something with customization. Will check. |
|
Please open an issue: https://github.com/home-assistant/home-assistant/issues/new |

mold_indicator should be fixed not to include spaces or dots in attribute names
https://community.home-assistant.io/t/how-to-show-sensor-attribute-est-crit-temp-in-customize-template-and-extra-badge/39451
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
toxrun successfully. Your PR cannot be merged unless tests passREQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices:
toxrun successfully. Your PR cannot be merged unless tests pass