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

Add PowerLevelController for fan to alexa (#27158)

* Implement AlexaPowerLevelController

* Implement AlexaPowerLevelController Tests
This commit is contained in:
ochlocracy
2019-10-03 16:28:02 -04:00
committed by Paulus Schoutsen
parent 565302ed34
commit af81878d08
5 changed files with 135 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ from .capabilities import (
AlexaPercentageController,
AlexaPlaybackController,
AlexaPowerController,
AlexaPowerLevelController,
AlexaSceneController,
AlexaSpeaker,
AlexaStepSpeaker,
@@ -344,6 +345,7 @@ class FanCapabilities(AlexaEntity):
supported = self.entity.attributes.get(ATTR_SUPPORTED_FEATURES, 0)
if supported & fan.SUPPORT_SET_SPEED:
yield AlexaPercentageController(self.entity)
yield AlexaPowerLevelController(self.entity)
yield AlexaEndpointHealth(self.hass, self.entity)