Fix Shelly climate entity state (#64756)

* Fix For loops in _handle_coordinator_update()

* Change logic

* Suggested change

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Move log

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
This commit is contained in:
Maciej Bieniek 2022-01-25 08:27:30 +01:00 committed by GitHub
parent 046f0a706f
commit 4a4b0d9418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,6 @@ class BlockSleepingClimate(
if hasattr(block, "targetTemp"):
self.block = block
_LOGGER.debug("Entity %s attached to block", self.name)
if self.device_block and self.block:
_LOGGER.debug("Entity %s attached to blocks", self.name)
self.async_write_ha_state()
return