notoriousbdg / Home-AssistantConfig

Apache License 2.0
180 stars 49 forks source link

Fix issue with battery_critical #18

Closed Djebouh closed 5 years ago

Djebouh commented 5 years ago

The update of value_template in the mqtt:config is cosmetic, and makes it easier to read. The cast into int and float in the mqtt:state is needed otherwise boolean (matching {% if attribval | int == attribval -%}) are not correctly serialized.

notoriousbdg commented 5 years ago

Thanks!