diff --git a/homeassistant/components/tuya/select.py b/homeassistant/components/tuya/select.py index e6acaf1f4418..7e817bf44684 100644 --- a/homeassistant/components/tuya/select.py +++ b/homeassistant/components/tuya/select.py @@ -197,6 +197,13 @@ SELECTS: dict[DeviceCategory, tuple[TuyaSelectEntityDescription, ...]] = { translation_key="countdown", ), ), + DeviceCategory.MJJ: ( + TuyaSelectEntityDescription( + key=DPCode.COUNTDOWN_SET, + entity_category=EntityCategory.CONFIG, + translation_key="countdown", + ), + ), DeviceCategory.QCCDZ: ( TuyaSelectEntityDescription( key=DPCode.WORK_MODE, diff --git a/tests/components/tuya/snapshots/test_select.ambr b/tests/components/tuya/snapshots/test_select.ambr index 9b3f85a7c78c..8d4458c172c5 100644 --- a/tests/components/tuya/snapshots/test_select.ambr +++ b/tests/components/tuya/snapshots/test_select.ambr @@ -6727,6 +6727,75 @@ 'state': 'level_5', }) # --- +# name: test_platform_setup_and_discovery[select.towel_rack_countdown-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + : list([ + 'cancel', + '1h', + '2h', + '3h', + '4h', + '5h', + '6h', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'select', + 'entity_category': , + 'entity_id': 'select.towel_rack_countdown', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Countdown', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Countdown', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'countdown', + 'unique_id': 'tuya.mb4qxkyt6rqfacbsjjmcountdown_set', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[select.towel_rack_countdown-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : 'Towel Rack Countdown', + : list([ + 'cancel', + '1h', + '2h', + '3h', + '4h', + '5h', + '6h', + ]), + }), + 'context': , + 'entity_id': 'select.towel_rack_countdown', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- # name: test_platform_setup_and_discovery[select.v20_mode-entry] EntityRegistryEntrySnapshot({ 'aliases': list([