Skip to content

Commit

Permalink
feat: add feature properties
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Feb 16, 2023
1 parent cd70ff6 commit db8f188
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/bonaparte/fireplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,26 @@ def __init__(
self._features = features if features else FireplaceFeatures()
self._state = FireplaceState()

@property
def has_aux(self) -> bool:
return self._features.aux

@property
def has_blower(self) -> bool:
return self._features.blower

@property
def has_led_lights(self) -> bool:
return self._features.led_lights

@property
def has_night_light(self) -> bool:
return self._features.night_light

@property
def has_split_flow(self) -> bool:
return self._features.split_flow

async def _simple_command(
self, command: int, parameter: int | bytes | bytearray | None = None
) -> bool:
Expand Down

0 comments on commit db8f188

Please sign in to comment.