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

@@ -62,7 +62,12 @@ API_THERMOSTAT_MODES = OrderedDict(
)
API_THERMOSTAT_PRESETS = {climate.PRESET_ECO: "ECO"}
PERCENTAGE_FAN_MAP = {fan.SPEED_LOW: 33, fan.SPEED_MEDIUM: 66, fan.SPEED_HIGH: 100}
PERCENTAGE_FAN_MAP = {
fan.SPEED_OFF: 0,
fan.SPEED_LOW: 33,
fan.SPEED_MEDIUM: 66,
fan.SPEED_HIGH: 100,
}
class Cause: