[climate-1.0] Add RoundThermostat to evohome (#25141)

* initial commit

* improve enumeration of zone(s)

* remove unused self._config

* remove unused self._config 2

* remove unused self._id

* clean up device_state_attributes

* remove some pylint: disable=protected-access

* remove LOGGER.warn(

* refactor for RoundThermostat

* ready for review

* small tweak

* small tweak 2

* fix regression, tweak

* tidy up docstring

* simplify code
This commit is contained in:
David Bonnes authored and Paulus Schoutsen committed 2019-07-14 20:14:24 -07:00
1 parent bcf85a0df1
commit 3ddd482cc1
3 files changed
+162 -110

No files matched your search

+2 -2
View File
@@ -143,7 +143,7 @@ class EvoBroker:
asyncio.run_coroutine_threadsafe(
self._load_auth_tokens(), self.hass.loop).result()
# evohomeclient2 uses local datetimes
# evohomeclient2 uses naive/local datetimes
if access_token_expires is not None:
access_token_expires = _utc_to_local_dt(access_token_expires)
@@ -212,7 +212,7 @@ class EvoBroker:
return (None, None, None) # account switched: so tokens wont be valid
async def _save_auth_tokens(self, *args) -> None:
# evohomeclient2 uses local datetimes
# evohomeclient2 uses naive/local datetimes
access_token_expires = _local_dt_to_utc(
self.client.access_token_expires)