Skip to content

Commit

Permalink
fix: expose Fireplace features attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Aug 26, 2023
1 parent 5574dc1 commit bddf27c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bonaparte/fireplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def state(self) -> FireplaceState:
"""The state of this fireplace."""
return self._state

@property
def features(self) -> FireplaceFeatures:
"""Featureset of this fireplace."""
return self._features

def set_features(self, features: set[str]) -> FireplaceFeatures:
"""Set all features from a list of feature strings."""
feature_set = {field.name for field in dc_fields(self._features)}
Expand Down

0 comments on commit bddf27c

Please sign in to comment.