diff --git a/homeassistant/components/yoto/strings.json b/homeassistant/components/yoto/strings.json index a78ba7a8b7f2..a7b44a84e5cd 100644 --- a/homeassistant/components/yoto/strings.json +++ b/homeassistant/components/yoto/strings.json @@ -128,6 +128,9 @@ }, "pause_volume_down": { "name": "Pause with volume down" + }, + "repeat_all": { + "name": "Repeat all" } }, "time": { diff --git a/tests/components/yoto/snapshots/test_binary_sensor.ambr b/tests/components/yoto/snapshots/test_binary_sensor.ambr new file mode 100644 index 000000000000..222c7e0f9463 --- /dev/null +++ b/tests/components/yoto/snapshots/test_binary_sensor.ambr @@ -0,0 +1,154 @@ +# serializer version: 1 +# name: test_all_entities[binary_sensor.nursery_yoto_audio_device-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': , + 'entity_id': 'binary_sensor.nursery_yoto_audio_device', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Audio device', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Audio device', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'audio_device', + 'unique_id': 'player-test_audio_device', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[binary_sensor.nursery_yoto_audio_device-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'connectivity', + 'friendly_name': 'Nursery Yoto Audio device', + }), + 'context': , + 'entity_id': 'binary_sensor.nursery_yoto_audio_device', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_all_entities[binary_sensor.nursery_yoto_bluetooth_audio-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': , + 'entity_id': 'binary_sensor.nursery_yoto_bluetooth_audio', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Bluetooth audio', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Bluetooth audio', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'bluetooth_audio', + 'unique_id': 'player-test_bluetooth_audio', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[binary_sensor.nursery_yoto_bluetooth_audio-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'connectivity', + 'friendly_name': 'Nursery Yoto Bluetooth audio', + }), + 'context': , + 'entity_id': 'binary_sensor.nursery_yoto_bluetooth_audio', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[binary_sensor.nursery_yoto_charging-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': None, + 'entity_id': 'binary_sensor.nursery_yoto_charging', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Charging', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Charging', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'player-test_charging', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[binary_sensor.nursery_yoto_charging-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery_charging', + 'friendly_name': 'Nursery Yoto Charging', + }), + 'context': , + 'entity_id': 'binary_sensor.nursery_yoto_charging', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_button.ambr b/tests/components/yoto/snapshots/test_button.ambr new file mode 100644 index 000000000000..23e93eeb446b --- /dev/null +++ b/tests/components/yoto/snapshots/test_button.ambr @@ -0,0 +1,52 @@ +# serializer version: 1 +# name: test_all_entities[button.nursery_yoto_restart-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'button', + 'entity_category': , + 'entity_id': 'button.nursery_yoto_restart', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Restart', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Restart', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'player-test_restart', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[button.nursery_yoto_restart-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'restart', + 'friendly_name': 'Nursery Yoto Restart', + }), + 'context': , + 'entity_id': 'button.nursery_yoto_restart', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_diagnostics.ambr b/tests/components/yoto/snapshots/test_diagnostics.ambr new file mode 100644 index 000000000000..3044d054ab12 --- /dev/null +++ b/tests/components/yoto/snapshots/test_diagnostics.ambr @@ -0,0 +1,153 @@ +# serializer version: 1 +# name: test_diagnostics + dict({ + 'entry_data': dict({ + 'auth_implementation': 'yoto', + 'token': '**REDACTED**', + }), + 'players': dict({ + 'player-test': dict({ + 'device': dict({ + 'description': None, + 'device_family': 'v3', + 'device_group': None, + 'device_id': 'player-test', + 'device_type': 'v3', + 'form_factor': None, + 'generation': 'gen3', + 'has_user_given_name': False, + 'name': 'Nursery Yoto', + 'release_channel': None, + }), + 'devices_refreshed_at': '2026-05-08T12:00:00+00:00', + 'extended_status': dict({ + 'active_card': None, + 'ambient_light_sensor_reading': None, + 'average_download_speed_bytes_second': None, + 'battery_level_percentage': None, + 'battery_level_raw': None, + 'battery_profile': None, + 'battery_temperature': None, + 'battery_voltage_mv': None, + 'card_insertion_state': None, + 'current_display_brightness': None, + 'day_mode': None, + 'free_disk_space_bytes': None, + 'is_audio_device_connected': None, + 'is_background_download_active': None, + 'is_bluetooth_audio_connected': None, + 'is_charging': None, + 'network_ssid': None, + 'nightlight_mode': None, + 'power_source': None, + 'system_volume_percentage': None, + 'temperature_celcius': None, + 'total_disk_space_bytes': None, + 'updated_at': None, + 'uptime': None, + 'user_volume_percentage': None, + 'utc_offset_seconds': None, + 'utc_time': None, + 'wifi_strength': None, + }), + 'info': dict({ + 'activation_pop_code': None, + 'config': dict({ + 'alarms': list([ + ]), + 'bluetooth_enabled': True, + 'bt_headphones_enabled': False, + 'clock_face': None, + 'day_ambient_colour': None, + 'day_display_brightness': None, + 'day_display_brightness_auto': True, + 'day_max_volume_limit': 80, + 'day_sounds_off': False, + 'day_time': dict({ + '__type': "", + 'isoformat': '07:00:00', + }), + 'day_yoto_daily': None, + 'day_yoto_radio': None, + 'display_dim_brightness': 10, + 'display_dim_timeout': 30, + 'headphones_volume_limited': True, + 'hour_format': 12, + 'locale': None, + 'log_level': None, + 'night_ambient_colour': None, + 'night_display_brightness': 40, + 'night_display_brightness_auto': False, + 'night_max_volume_limit': 50, + 'night_sounds_off': True, + 'night_time': dict({ + '__type': "", + 'isoformat': '19:00:00', + }), + 'night_yoto_daily': None, + 'night_yoto_radio': None, + 'pause_power_button': False, + 'pause_volume_down': True, + 'repeat_all': False, + 'show_diagnostics': None, + 'shutdown_timeout': 3600, + 'system_volume': None, + 'timezone': None, + 'volume_level': None, + }), + 'device_family': None, + 'device_group': None, + 'device_type': None, + 'error_code': None, + 'firmware_version': 'v2.17.5', + 'geo_timezone': None, + 'mac': '**REDACTED**', + 'name': None, + 'pop_code': None, + 'release_channel_id': None, + }), + 'info_refreshed_at': '2026-05-08T12:00:00+00:00', + 'is_online': True, + 'last_event': dict({ + 'card_id': 'card-test', + 'chapter_key': '01', + 'chapter_title': 'Chapter 1', + 'event_utc': None, + 'playback_status': 'playing', + 'playback_wait': None, + 'player_id': 'player-test', + 'position': 120, + 'repeat_all': None, + 'request_id': None, + 'sleep_timer_active': None, + 'sleep_timer_seconds': None, + 'source': None, + 'streaming': None, + 'track_key': '01-INT', + 'track_length': 300, + 'track_title': 'Introduction', + 'volume': 8, + 'volume_max': 16, + }), + 'last_event_received_at': '2026-05-08T12:00:00+00:00', + 'online_refreshed_at': None, + 'status': dict({ + 'active_card': None, + 'ambient_light_sensor_reading': None, + 'battery_level_percentage': 75, + 'card_insertion_state': 1, + 'current_display_brightness': 85, + 'day_mode': 1, + 'free_disk_space_bytes': 14500000000, + 'is_audio_device_connected': False, + 'is_bluetooth_audio_connected': True, + 'is_charging': True, + 'nightlight_mode': None, + 'system_volume_percentage': None, + 'updated_at': None, + 'user_volume_percentage': None, + }), + }), + }), + }) +# --- diff --git a/tests/components/yoto/snapshots/test_number.ambr b/tests/components/yoto/snapshots/test_number.ambr new file mode 100644 index 000000000000..af975dad46c4 --- /dev/null +++ b/tests/components/yoto/snapshots/test_number.ambr @@ -0,0 +1,423 @@ +# serializer version: 1 +# name: test_all_entities[number.nursery_yoto_auto_shutdown_delay-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 14400, + 'min': 0, + 'mode': , + 'step': 60, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_auto_shutdown_delay', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Auto-shutdown delay', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Auto-shutdown delay', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'shutdown_timeout', + 'unique_id': 'player-test_shutdown_timeout', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[number.nursery_yoto_auto_shutdown_delay-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'Nursery Yoto Auto-shutdown delay', + 'max': 14400, + 'min': 0, + 'mode': , + 'step': 60, + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'number.nursery_yoto_auto_shutdown_delay', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3600', + }) +# --- +# name: test_all_entities[number.nursery_yoto_day_display_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_day_display_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day display brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Day display brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_display_brightness', + 'unique_id': 'player-test_day_display_brightness', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[number.nursery_yoto_day_display_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Day display brightness', + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.nursery_yoto_day_display_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_all_entities[number.nursery_yoto_day_maximum_volume-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_day_maximum_volume', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day maximum volume', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Day maximum volume', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_max_volume_limit', + 'unique_id': 'player-test_day_max_volume_limit', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[number.nursery_yoto_day_maximum_volume-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Day maximum volume', + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.nursery_yoto_day_maximum_volume', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '80', + }) +# --- +# name: test_all_entities[number.nursery_yoto_dimmed_display_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_dimmed_display_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Dimmed display brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Dimmed display brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'display_dim_brightness', + 'unique_id': 'player-test_display_dim_brightness', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[number.nursery_yoto_dimmed_display_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Dimmed display brightness', + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.nursery_yoto_dimmed_display_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '10', + }) +# --- +# name: test_all_entities[number.nursery_yoto_display_dim_delay-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 3600, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_display_dim_delay', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Display dim delay', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Display dim delay', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'display_dim_timeout', + 'unique_id': 'player-test_display_dim_timeout', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[number.nursery_yoto_display_dim_delay-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'duration', + 'friendly_name': 'Nursery Yoto Display dim delay', + 'max': 3600, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'number.nursery_yoto_display_dim_delay', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '30', + }) +# --- +# name: test_all_entities[number.nursery_yoto_night_display_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_night_display_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Night display brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Night display brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'night_display_brightness', + 'unique_id': 'player-test_night_display_brightness', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[number.nursery_yoto_night_display_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Night display brightness', + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.nursery_yoto_night_display_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '40', + }) +# --- +# name: test_all_entities[number.nursery_yoto_night_maximum_volume-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.nursery_yoto_night_maximum_volume', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Night maximum volume', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Night maximum volume', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'night_max_volume_limit', + 'unique_id': 'player-test_night_max_volume_limit', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[number.nursery_yoto_night_maximum_volume-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Night maximum volume', + 'max': 100, + 'min': 0, + 'mode': , + 'step': 1, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.nursery_yoto_night_maximum_volume', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '50', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_select.ambr b/tests/components/yoto/snapshots/test_select.ambr new file mode 100644 index 000000000000..d3b9e3dc52cf --- /dev/null +++ b/tests/components/yoto/snapshots/test_select.ambr @@ -0,0 +1,60 @@ +# serializer version: 1 +# name: test_all_entities[select.nursery_yoto_hour_format-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + '12', + '24', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'select', + 'entity_category': , + 'entity_id': 'select.nursery_yoto_hour_format', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Hour format', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Hour format', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hour_format', + 'unique_id': 'player-test_hour_format', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[select.nursery_yoto_hour_format-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Hour format', + 'options': list([ + '12', + '24', + ]), + }), + 'context': , + 'entity_id': 'select.nursery_yoto_hour_format', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '12', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_sensor.ambr b/tests/components/yoto/snapshots/test_sensor.ambr new file mode 100644 index 000000000000..b3da84b146f5 --- /dev/null +++ b/tests/components/yoto/snapshots/test_sensor.ambr @@ -0,0 +1,295 @@ +# serializer version: 1 +# name: test_all_entities[sensor.nursery_yoto_battery-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.nursery_yoto_battery', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Battery', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': 'player-test_battery_level', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_battery-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery', + 'friendly_name': 'Nursery Yoto Battery', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.nursery_yoto_battery', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '75', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_card_slot-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'none', + 'physical', + 'remote', + 'streaming', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.nursery_yoto_card_slot', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Card slot', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Card slot', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'card_insertion_state', + 'unique_id': 'player-test_card_insertion_state', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_card_slot-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Nursery Yoto Card slot', + 'options': list([ + 'none', + 'physical', + 'remote', + 'streaming', + ]), + }), + 'context': , + 'entity_id': 'sensor.nursery_yoto_card_slot', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'physical', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_day_mode-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + 'day', + 'night', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.nursery_yoto_day_mode', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day mode', + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Day mode', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_mode', + 'unique_id': 'player-test_day_mode', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_day_mode-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'enum', + 'friendly_name': 'Nursery Yoto Day mode', + 'options': list([ + 'day', + 'night', + ]), + }), + 'context': , + 'entity_id': 'sensor.nursery_yoto_day_mode', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'day', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_display_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.nursery_yoto_display_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Display brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Display brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'display_brightness', + 'unique_id': 'player-test_display_brightness', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_display_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Display brightness', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.nursery_yoto_display_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '85', + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_free_disk_space-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.nursery_yoto_free_disk_space', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Free disk space', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Free disk space', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'free_disk_space', + 'unique_id': 'player-test_free_disk_space', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.nursery_yoto_free_disk_space-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'data_size', + 'friendly_name': 'Nursery Yoto Free disk space', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.nursery_yoto_free_disk_space', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '14.5', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_switch.ambr b/tests/components/yoto/snapshots/test_switch.ambr new file mode 100644 index 000000000000..0dfdadaefc29 --- /dev/null +++ b/tests/components/yoto/snapshots/test_switch.ambr @@ -0,0 +1,501 @@ +# serializer version: 1 +# name: test_all_entities[switch.nursery_yoto_bluetooth-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_bluetooth', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Bluetooth', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Bluetooth', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'bluetooth', + 'unique_id': 'player-test_bluetooth', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_bluetooth-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Bluetooth', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_bluetooth', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_bluetooth_headphones-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_bluetooth_headphones', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Bluetooth headphones', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Bluetooth headphones', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'bluetooth_headphones', + 'unique_id': 'player-test_bluetooth_headphones', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_bluetooth_headphones-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Bluetooth headphones', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_bluetooth_headphones', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_day_automatic_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_day_automatic_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day automatic brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Day automatic brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_auto_brightness', + 'unique_id': 'player-test_day_auto_brightness', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_day_automatic_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Day automatic brightness', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_day_automatic_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_day_system_sounds-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_day_system_sounds', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day system sounds', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Day system sounds', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_sounds', + 'unique_id': 'player-test_day_sounds', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_day_system_sounds-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Day system sounds', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_day_system_sounds', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_limit_headphone_volume-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_limit_headphone_volume', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Limit headphone volume', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Limit headphone volume', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'headphones_volume_limit', + 'unique_id': 'player-test_headphones_volume_limit', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_limit_headphone_volume-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Limit headphone volume', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_limit_headphone_volume', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_night_automatic_brightness-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_night_automatic_brightness', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Night automatic brightness', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Night automatic brightness', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'night_auto_brightness', + 'unique_id': 'player-test_night_auto_brightness', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_night_automatic_brightness-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Night automatic brightness', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_night_automatic_brightness', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_night_system_sounds-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_night_system_sounds', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Night system sounds', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Night system sounds', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'night_sounds', + 'unique_id': 'player-test_night_sounds', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_night_system_sounds-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Night system sounds', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_night_system_sounds', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_pause_with_power_button-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_pause_with_power_button', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Pause with power button', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Pause with power button', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pause_power_button', + 'unique_id': 'player-test_pause_power_button', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_pause_with_power_button-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Pause with power button', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_pause_with_power_button', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_pause_with_volume_down-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_pause_with_volume_down', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Pause with volume down', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Pause with volume down', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'pause_volume_down', + 'unique_id': 'player-test_pause_volume_down', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_pause_with_volume_down-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Pause with volume down', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_pause_with_volume_down', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- +# name: test_all_entities[switch.nursery_yoto_repeat_all-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.nursery_yoto_repeat_all', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Repeat all', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Repeat all', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'repeat_all', + 'unique_id': 'player-test_repeat_all', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[switch.nursery_yoto_repeat_all-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Repeat all', + }), + 'context': , + 'entity_id': 'switch.nursery_yoto_repeat_all', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- diff --git a/tests/components/yoto/snapshots/test_time.ambr b/tests/components/yoto/snapshots/test_time.ambr new file mode 100644 index 000000000000..2398a2f58546 --- /dev/null +++ b/tests/components/yoto/snapshots/test_time.ambr @@ -0,0 +1,101 @@ +# serializer version: 1 +# name: test_all_entities[time.nursery_yoto_day_mode_start-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'time', + 'entity_category': , + 'entity_id': 'time.nursery_yoto_day_mode_start', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Day mode start', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Day mode start', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'day_mode_start', + 'unique_id': 'player-test_day_mode_start', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[time.nursery_yoto_day_mode_start-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Day mode start', + }), + 'context': , + 'entity_id': 'time.nursery_yoto_day_mode_start', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '07:00:00', + }) +# --- +# name: test_all_entities[time.nursery_yoto_night_mode_start-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'time', + 'entity_category': , + 'entity_id': 'time.nursery_yoto_night_mode_start', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Night mode start', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Night mode start', + 'platform': 'yoto', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'night_mode_start', + 'unique_id': 'player-test_night_mode_start', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[time.nursery_yoto_night_mode_start-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Nursery Yoto Night mode start', + }), + 'context': , + 'entity_id': 'time.nursery_yoto_night_mode_start', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '19:00:00', + }) +# ---