Skip to content
Snippets Groups Projects
Commit 5d2d9af8 authored by John Arild Berentsen's avatar John Arild Berentsen Committed by GitHub
Browse files

Add deprecated warning to thermostat and hvac (#2962)

* Add deprecated warning for thermostat and hvac
parent daa066c0
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,9 @@ def set_swing_mode(hass, swing_mode, entity_id=None): ...@@ -135,6 +135,9 @@ def set_swing_mode(hass, swing_mode, entity_id=None):
# pylint: disable=too-many-branches # pylint: disable=too-many-branches
def setup(hass, config): def setup(hass, config):
"""Setup hvacs.""" """Setup hvacs."""
_LOGGER.warning('This component has been deprecated in favour of'
' the "climate" component and will be removed '
'in the future. Please upgrade.')
component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL) component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL)
component.setup(config) component.setup(config)
......
...@@ -115,6 +115,9 @@ def set_hvac_mode(hass, hvac_mode, entity_id=None): ...@@ -115,6 +115,9 @@ def set_hvac_mode(hass, hvac_mode, entity_id=None):
# pylint: disable=too-many-branches # pylint: disable=too-many-branches
def setup(hass, config): def setup(hass, config):
"""Setup thermostats.""" """Setup thermostats."""
_LOGGER.warning('This component has been deprecated in favour of'
' the "climate" component and will be removed '
'in the future. Please upgrade.')
component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL) component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL)
component.setup(config) component.setup(config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment