Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Sinopé thermostat and light quirks inherit from CustomDevice #3542

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zhaquirks/sinope/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class SinopeTechnologieslight(CustomDevice):
device_automation_triggers = LIGHT_DEVICE_TRIGGERS


class SinopeDM2500ZB(SinopeTechnologieslight):
class SinopeDM2500ZB(CustomDevice):
"""DM2500ZB, DM2500ZB-G2 Dimmers."""

signature = {
Expand Down Expand Up @@ -366,7 +366,7 @@ class SinopeDM2500ZB(SinopeTechnologieslight):
device_automation_triggers = LIGHT_DEVICE_TRIGGERS


class SinopeDM2550ZB(SinopeTechnologieslight):
class SinopeDM2550ZB(CustomDevice):
"""DM2550ZB, DM2550ZB-G2 Dimmers."""

signature = {
Expand Down
12 changes: 6 additions & 6 deletions zhaquirks/sinope/thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class SinopeTechnologiesThermostat(CustomDevice):
}


class SinopeTH1400ZB(SinopeTechnologiesThermostat):
class SinopeTH1400ZB(CustomDevice):
"""TH1400ZB thermostat."""

signature = {
Expand Down Expand Up @@ -460,7 +460,7 @@ class SinopeTH1400ZB(SinopeTechnologiesThermostat):
}


class SinopeTH1300ZB(SinopeTechnologiesThermostat):
class SinopeTH1300ZB(CustomDevice):
"""TH1300ZB thermostat."""

signature = {
Expand Down Expand Up @@ -520,7 +520,7 @@ class SinopeTH1300ZB(SinopeTechnologiesThermostat):
}


class SinopeLineThermostats(SinopeTechnologiesThermostat):
class SinopeLineThermostats(CustomDevice):
"""TH1123ZB, TH1124ZB, TH1500ZB and OTH3600-GA-ZB thermostats."""

signature = {
Expand Down Expand Up @@ -585,7 +585,7 @@ class SinopeLineThermostats(SinopeTechnologiesThermostat):
}


class SinopeG2Thermostats(SinopeTechnologiesThermostat):
class SinopeG2Thermostats(CustomDevice):
"""TH1123ZB-G2 and TH1124ZB-G2 thermostats."""

signature = {
Expand Down Expand Up @@ -648,8 +648,8 @@ class SinopeG2Thermostats(SinopeTechnologiesThermostat):
}


class SinopeHPThermostats(SinopeTechnologiesThermostat):
"""HP6000ZB-MA and HP6000ZB-GE thermostats."""
class SinopeHPThermostats(CustomDevice):
"""HP6000ZB-GE, HP6000ZB-HS and HP6000ZB-MA thermostats."""

signature = {
# <SimpleDescriptor endpoint=1 profile=260 device_type=775 device_version=1
Expand Down