muchasuerte / ha-besmart

Home-Assistant Support for Riello's Besmart thermostats.
MIT License
13 stars 6 forks source link

Update climate.py #6

Closed faxbio closed 2 years ago

faxbio commented 2 years ago

the old code alway returned true. casting to a boolean a string. in addition i've reversed the boolean to raise in ha the status false when a battery has a problem. tested in my real case environment. Battery almost empty leads to "bat: 1" .