ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
336 stars 48 forks source link

Remove `await` in front of self.async_write_ha_state() calls #156

Closed Chupaka closed 1 year ago

Chupaka commented 1 year ago

Adjustment as discussed in https://github.com/ScratMan/HASmartThermostat/pull/152

ScratMan commented 1 year ago

Unfortunately, I can't test by myself, temperature is already high. Could someone validate the behaviour? It looks a bit strange the name of the function starts with async_ while it's not defined as an asynchronous function.

If it's working correctly I will make a new release.

ScratMan commented 1 year ago

My test environment crashed, I lost its config and need to rebuild it from scratch. I reviewed the code, and it uses the same method usage as other methods that were already working fine, so I'm going to release it.