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:
committed by
Paulus Schoutsen
parent
565302ed34
commit
af81878d08
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user