Add bypass and automatic bypass switch for Danfor Air. (#23572)

Add bypass and automatic bypass switch for Danfoss Air
This commit is contained in:
Jonas Pedersen 2019-04-30 23:07:49 +02:00 committed by Fabian Affolter
parent 5ded0dd3fa
commit 24060e0fb5
4 changed files with 15 additions and 3 deletions

View file

@ -85,5 +85,9 @@ class DanfossAir:
= self._client.command(ReadCommand.boost)
self._data[ReadCommand.battery_percent] \
= self._client.command(ReadCommand.battery_percent)
self._data[ReadCommand.bypass] \
= self._client.command(ReadCommand.bypass)
self._data[ReadCommand.automatic_bypass] \
= self._client.command(ReadCommand.automatic_bypass)
_LOGGER.debug("Done fetching data from Danfoss Air CCM module")

View file

@ -3,7 +3,7 @@
"name": "Danfoss air",
"documentation": "https://www.home-assistant.io/components/danfoss_air",
"requirements": [
"pydanfossair==0.0.7"
"pydanfossair==0.1.0"
],
"dependencies": [],
"codeowners": []

View file

@ -19,6 +19,14 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
ReadCommand.boost,
UpdateCommand.boost_activate,
UpdateCommand.boost_deactivate],
["Danfoss Air Bypass",
ReadCommand.bypass,
UpdateCommand.bypass_activate,
UpdateCommand.bypass_deactivate],
["Danfoss Air Automatic Bypass",
ReadCommand.automatic_bypass,
UpdateCommand.bypass_activate,
UpdateCommand.bypass_deactivate],
]
dev = []
@ -59,7 +67,7 @@ class DanfossAir(SwitchDevice):
def turn_off(self, **kwargs):
"""Turn the switch off."""
_LOGGER.debug("Turning of switch with command %s", self._off_command)
_LOGGER.debug("Turning off switch with command %s", self._off_command)
self._data.update_state(self._off_command, self._state_command)
def update(self):

View file

@ -1009,7 +1009,7 @@ pycsspeechtts==1.0.2
pydaikin==1.4.0
# homeassistant.components.danfoss_air
pydanfossair==0.0.7
pydanfossair==0.1.0
# homeassistant.components.deconz
pydeconz==55