Skip to content

Commit

Permalink
Mark new HVAC types as dataclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Dec 26, 2024
1 parent 69c2b5f commit ffa4fe0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aiovantage/objects/vantage_generic_hvac_rs485.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
"""Vantage Generic HVAC RS485 objects."""

from dataclasses import dataclass

from aiovantage.object_interfaces import ThermostatInterface

from .child_device import ChildDevice
from .port_device import PortDevice


@dataclass(kw_only=True)
class VantageGenericHVACRS485Port(PortDevice):
"""Vantage Generic HVAC RS485 port device."""

class Meta:
name = "Vantage.Generic_HVAC_RS485_PORT"


@dataclass(kw_only=True)
class VantageGenericHVACRS485TechContactsChild(ChildDevice):
"""Vantage Generic HVAC RS485 tech contacts child device."""

class Meta:
name = "Vantage.Generic_HVAC_RS485_TechContacts_CHILD"


@dataclass(kw_only=True)
class VantageGenericHVACRS485CompoundChild(ChildDevice, ThermostatInterface):
"""Vantage Generic HVAC RS485 compound child device."""

class Meta:
name = "Vantage.Generic_HVAC_RS485_Compound_CHILD"


@dataclass(kw_only=True)
class VantageGenericHVACRS485ZoneChild(ChildDevice, ThermostatInterface):
"""Vantage Generic HVAC RS485 zone child device."""

class Meta:
name = "Vantage.Generic_HVAC_RS485_Zone_CHILD"


@dataclass(kw_only=True)
class VantageGenericHVACRS485ZoneWithoutFanSpeedChild(ChildDevice, ThermostatInterface):
"""Vantage Generic HVAC RS485 zone child device without fan speed."""

Expand Down
5 changes: 5 additions & 0 deletions src/aiovantage/objects/vantage_hvac_iu.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
"""Vantage HVAC-IU objects."""

from dataclasses import dataclass

from aiovantage.object_interfaces import ThermostatInterface

from .child_device import ChildDevice
from .port_device import PortDevice


@dataclass(kw_only=True)
class VantageHVACIUPort(PortDevice):
"""Vantage HVAC-IU port device."""

class Meta:
name = "Vantage.HVAC-IU_PORT"


@dataclass(kw_only=True)
class VantageHVACIULineChild(ChildDevice):
"""Vantage HVAC-IU line child device."""

class Meta:
name = "Vantage.HVAC-IU-Line_CHILD"


@dataclass(kw_only=True)
class VantageHVACIUZoneChild(ChildDevice, ThermostatInterface):
"""Vantage HVAC-IU zone child device."""

Expand Down

0 comments on commit ffa4fe0

Please sign in to comment.