Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
Update fan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
miawgogo authored Jun 2, 2021
1 parent 96af295 commit 57e4a71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/philips_airpurifier_coap/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
MODEL_AC2729,
MODEL_AC2889,
MODEL_AC2939,
MODEL_AC2936,
MODEL_AC2958,
MODEL_AC3033,
MODEL_AC3059,
Expand Down Expand Up @@ -154,6 +155,7 @@
MODEL_AC2729,
MODEL_AC2889,
MODEL_AC2939,
MODEL_AC2936,
MODEL_AC2958,
MODEL_AC3033,
MODEL_AC3059,
Expand Down Expand Up @@ -184,6 +186,7 @@ async def async_setup_platform(
MODEL_AC2729: PhilipsAC2729,
MODEL_AC2889: PhilipsAC2889,
MODEL_AC2939: PhilipsAC2939,
MODEL_AC2939: PhilipsAC2936,
MODEL_AC2958: PhilipsAC2958,
MODEL_AC3033: PhilipsAC3033,
MODEL_AC3059: PhilipsAC3059,
Expand Down Expand Up @@ -632,6 +635,14 @@ class PhilipsAC2939(PhilipsTVOCMixin, PhilipsGenericCoAPFan):
PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "S"},
PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T"},
}

class PhilipsAC2936(PhilipsTVOCMixin, PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
PRESET_MODE_AUTO: {PHILIPS_POWER: "1", PHILIPS_MODE: "AG"},
PRESET_MODE_GENTLE: {PHILIPS_POWER: "1", PHILIPS_MODE: "GT"},
PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "S"},
PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T"},
}

class PhilipsAC2958(PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
Expand Down

0 comments on commit 57e4a71

Please sign in to comment.