diff --git a/custom_components/terncy/core/gateway.py b/custom_components/terncy/core/gateway.py index 51d52ab..044934f 100644 --- a/custom_components/terncy/core/gateway.py +++ b/custom_components/terncy/core/gateway.py @@ -517,12 +517,13 @@ def setup_device(self, device_data: PhysicalDeviceData, svc_list: list[SvcData]) if svc_room := svc.get("room"): if svc_room_name := self.room_data.get(svc_room): suggested_area = svc_room_name + attrs = [a['attr'] for a in attributes] descriptions = [ description for description in PROFILES.get(profile) if ( not description.required_attrs - or set(description.required_attrs).issubset(attributes) + or set(description.required_attrs).issubset(attrs) ) ] if len(descriptions) > 0: