Skip to content
Merged
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
3 changes: 2 additions & 1 deletion ariston/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _set_energy_features(self):

def are_device_features_available(
self,
device_features: Optional[list[DeviceFeatures]],
device_features: Optional[list[DeviceFeatures or CustomDeviceFeatures or DeviceAttribute]],
system_types: Optional[list[SystemType]],
whe_types: Optional[list[WheType]],
) -> bool:
Expand All @@ -380,6 +380,7 @@ def are_device_features_available(
if (
self.features.get(str(device_feature)) is not True
and self.custom_features.get(str(device_feature)) is not True
and self.attributes.get(str(device_feature)) is not True
):
return False

Expand Down