Skip to content

Commit

Permalink
feat: add support for ColorLogic lights in backyards (#50)
Browse files Browse the repository at this point in the history
* feat: add support for ColorLogic lights in backyards

* fix: add relay to backyard subdevices
  • Loading branch information
cryptk committed Jun 11, 2024
1 parent f72eb48 commit 05f110e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyomnilogic_local/models/mspconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,13 @@ def __init__(self, **data: Any) -> None:


class MSPBackyard(OmniBase):
_sub_devices = {"sensor", "bow"}
_sub_devices = {"sensor", "bow", "colorlogic_light", "relay"}

omni_type: OmniType = OmniType.BACKYARD
sensor: list[MSPSensor] | None = Field(alias="Sensor")
bow: list[MSPBoW] | None = Field(alias="Body-of-water")
relay: list[MSPRelay] | None = Field(alias="Relay")
colorlogic_light: list[MSPColorLogicLight] | None = Field(alias="ColorLogic-Light")


class MSPSchedule(OmniBase):
Expand Down

0 comments on commit 05f110e

Please sign in to comment.