1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Fix deConz thermostat integration (#26267)

* Fixed logger name to allow selective logging

* Fixed thermostat mode ('off' and 'heat' modes were not consistent with Eurotronic Spirit Zigbee Thermostat state) and added 'auto' to supported mode

* Added required blank lines in code

* Black formatting

* Revert logging code added to each files. Instead, only replaced "." by __package__ in const.py

* Added a test on self._device.state_on to determine hvac_mode

* Black formatting

* Added debug message when unsupported hvac_mode is encountered

* Applied formatting recommandations

* Updated tests for 'auto' hvac_mode
This commit is contained in:
5mauggy
2019-08-30 14:28:39 +02:00
committed by Pascal Vizeli
parent ad6ede9ef7
commit 62338dd28e
3 changed files with 23 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
"""Constants for the deCONZ component."""
import logging
_LOGGER = logging.getLogger(".")
_LOGGER = logging.getLogger(__package__)
DOMAIN = "deconz"