Skip to content

Commit

Permalink
Remove all Philips Hue lighting related quirks (#993)
Browse files Browse the repository at this point in the history
* Remove all Philips Hue lighting related quirks

* Remove unused custom Philips lighting clusters

* Fixed imports
  • Loading branch information
TheJulianJES authored Aug 26, 2021
1 parent 92571ad commit ecbbc98
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 944 deletions.
24 changes: 1 addition & 23 deletions zhaquirks/philips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from zigpy.quirks import CustomCluster
import zigpy.types as t
from zigpy.zcl import foundation
from zigpy.zcl.clusters.general import Basic, LevelControl, OnOff
from zigpy.zcl.clusters.lighting import Color
from zigpy.zcl.clusters.general import Basic
from zigpy.zcl.clusters.measurement import OccupancySensing

from zhaquirks.const import (
Expand Down Expand Up @@ -90,27 +89,6 @@ class OccupancyCluster(CustomCluster, OccupancySensing):
}


class PhilipsOnOffCluster(CustomCluster, OnOff):
"""Philips OnOff cluster."""

attributes = OnOff.attributes.copy()
attributes.update({0x4003: ("power_on_state", PowerOnState)})


class PhilipsLevelControlCluster(CustomCluster, LevelControl):
"""Philips LevelControl cluster."""

attributes = LevelControl.attributes.copy()
attributes.update({0x4000: ("power_on_level", t.uint8_t)})


class PhilipsColorCluster(CustomCluster, Color):
"""Philips Color cluster."""

attributes = Color.attributes.copy()
attributes.update({0x4010: ("power_on_color_temperature", t.uint16_t)})


class PhilipsBasicCluster(CustomCluster, Basic):
"""Philips Basic cluster."""

Expand Down
97 changes: 0 additions & 97 deletions zhaquirks/philips/llcbloom.py

This file was deleted.

164 changes: 0 additions & 164 deletions zhaquirks/philips/lst.py

This file was deleted.

94 changes: 0 additions & 94 deletions zhaquirks/philips/ltd011.py

This file was deleted.

Loading

0 comments on commit ecbbc98

Please sign in to comment.