diff --git a/homeassistant/components/smartthings/strings.json b/homeassistant/components/smartthings/strings.json index dbbc01c34b2..7b5edde2d10 100644 --- a/homeassistant/components/smartthings/strings.json +++ b/homeassistant/components/smartthings/strings.json @@ -49,7 +49,7 @@ "name": "Freezer door" }, "cooler_door": { - "name": "Cooler door" + "name": "Fridge door" }, "cool_select_plus_door": { "name": "CoolSelect+ door" @@ -116,7 +116,7 @@ "name": "Freezer temperature" }, "cooler_temperature": { - "name": "Cooler temperature" + "name": "Fridge temperature" }, "cool_select_plus_temperature": { "name": "CoolSelect+ temperature" @@ -243,7 +243,7 @@ } }, "cooler_temperature": { - "name": "Cooler temperature" + "name": "Fridge temperature" }, "manual_level": { "name": "Burner {burner_id} level" diff --git a/tests/components/smartthings/snapshots/test_binary_sensor.ambr b/tests/components/smartthings/snapshots/test_binary_sensor.ambr index 583c256042e..4f6d0d6d634 100644 --- a/tests/components/smartthings/snapshots/test_binary_sensor.ambr +++ b/tests/components/smartthings/snapshots/test_binary_sensor.ambr @@ -665,54 +665,6 @@ 'state': 'on', }) # --- -# name: test_all_entities[da_ref_normal_000001][binary_sensor.refrigerator_cooler_door-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - '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.refrigerator_cooler_door', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Cooler door', - 'platform': 'smartthings', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': 'cooler_door', - 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_contactSensor_contact_contact', - 'unit_of_measurement': None, - }) -# --- -# name: test_all_entities[da_ref_normal_000001][binary_sensor.refrigerator_cooler_door-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'device_class': 'door', - 'friendly_name': 'Refrigerator Cooler door', - }), - 'context': , - 'entity_id': 'binary_sensor.refrigerator_cooler_door', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': 'off', - }) -# --- # name: test_all_entities[da_ref_normal_000001][binary_sensor.refrigerator_freezer_door-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -761,7 +713,7 @@ 'state': 'off', }) # --- -# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_cooler_door-entry] +# name: test_all_entities[da_ref_normal_000001][binary_sensor.refrigerator_fridge_door-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -774,7 +726,7 @@ 'disabled_by': None, 'domain': 'binary_sensor', 'entity_category': None, - 'entity_id': 'binary_sensor.refrigerator_cooler_door', + 'entity_id': 'binary_sensor.refrigerator_fridge_door', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -786,23 +738,23 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Cooler door', + 'original_name': 'Fridge door', 'platform': 'smartthings', 'previous_unique_id': None, 'supported_features': 0, 'translation_key': 'cooler_door', - 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_contactSensor_contact_contact', + 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_contactSensor_contact_contact', 'unit_of_measurement': None, }) # --- -# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_cooler_door-state] +# name: test_all_entities[da_ref_normal_000001][binary_sensor.refrigerator_fridge_door-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'door', - 'friendly_name': 'Refrigerator Cooler door', + 'friendly_name': 'Refrigerator Fridge door', }), 'context': , - 'entity_id': 'binary_sensor.refrigerator_cooler_door', + 'entity_id': 'binary_sensor.refrigerator_fridge_door', 'last_changed': , 'last_reported': , 'last_updated': , @@ -905,7 +857,7 @@ 'state': 'off', }) # --- -# name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_cooler_door-entry] +# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_fridge_door-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -918,7 +870,7 @@ 'disabled_by': None, 'domain': 'binary_sensor', 'entity_category': None, - 'entity_id': 'binary_sensor.frigo_cooler_door', + 'entity_id': 'binary_sensor.refrigerator_fridge_door', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -930,23 +882,23 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Cooler door', + 'original_name': 'Fridge door', 'platform': 'smartthings', 'previous_unique_id': None, 'supported_features': 0, 'translation_key': 'cooler_door', - 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_contactSensor_contact_contact', + 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_contactSensor_contact_contact', 'unit_of_measurement': None, }) # --- -# name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_cooler_door-state] +# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_fridge_door-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'door', - 'friendly_name': 'Frigo Cooler door', + 'friendly_name': 'Refrigerator Fridge door', }), 'context': , - 'entity_id': 'binary_sensor.frigo_cooler_door', + 'entity_id': 'binary_sensor.refrigerator_fridge_door', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1001,6 +953,54 @@ 'state': 'off', }) # --- +# name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_fridge_door-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + '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.frigo_fridge_door', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Fridge door', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': 'cooler_door', + 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_contactSensor_contact_contact', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_fridge_door-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'door', + 'friendly_name': 'Frigo Fridge door', + }), + 'context': , + 'entity_id': 'binary_sensor.frigo_fridge_door', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- # name: test_all_entities[da_wm_dw_000001][binary_sensor.dishwasher_child_lock-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/smartthings/snapshots/test_number.ambr b/tests/components/smartthings/snapshots/test_number.ambr index 34073173861..37af2200899 100644 --- a/tests/components/smartthings/snapshots/test_number.ambr +++ b/tests/components/smartthings/snapshots/test_number.ambr @@ -55,64 +55,6 @@ 'state': '0', }) # --- -# name: test_all_entities[da_ref_normal_000001][number.refrigerator_cooler_temperature-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - 'area_id': None, - 'capabilities': dict({ - 'max': 7.0, - 'min': 1.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.refrigerator_cooler_temperature', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Cooler temperature', - 'platform': 'smartthings', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': 'cooler_temperature', - 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', - 'unit_of_measurement': , - }) -# --- -# name: test_all_entities[da_ref_normal_000001][number.refrigerator_cooler_temperature-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Refrigerator Cooler temperature', - 'max': 7.0, - 'min': 1.0, - 'mode': , - 'step': 1, - 'unit_of_measurement': , - }), - 'context': , - 'entity_id': 'number.refrigerator_cooler_temperature', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': '3.0', - }) -# --- # name: test_all_entities[da_ref_normal_000001][number.refrigerator_freezer_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -171,7 +113,7 @@ 'state': '-18.0', }) # --- -# name: test_all_entities[da_ref_normal_01001][number.refrigerator_cooler_temperature-entry] +# name: test_all_entities[da_ref_normal_000001][number.refrigerator_fridge_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -189,7 +131,7 @@ 'disabled_by': None, 'domain': 'number', 'entity_category': , - 'entity_id': 'number.refrigerator_cooler_temperature', + 'entity_id': 'number.refrigerator_fridge_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -201,20 +143,20 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Cooler temperature', + 'original_name': 'Fridge temperature', 'platform': 'smartthings', 'previous_unique_id': None, 'supported_features': 0, 'translation_key': 'cooler_temperature', - 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', + 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', 'unit_of_measurement': , }) # --- -# name: test_all_entities[da_ref_normal_01001][number.refrigerator_cooler_temperature-state] +# name: test_all_entities[da_ref_normal_000001][number.refrigerator_fridge_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', - 'friendly_name': 'Refrigerator Cooler temperature', + 'friendly_name': 'Refrigerator Fridge temperature', 'max': 7.0, 'min': 1.0, 'mode': , @@ -222,7 +164,7 @@ 'unit_of_measurement': , }), 'context': , - 'entity_id': 'number.refrigerator_cooler_temperature', + 'entity_id': 'number.refrigerator_fridge_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -287,14 +229,14 @@ 'state': '-18.0', }) # --- -# name: test_all_entities[da_ref_normal_01011][number.frigo_cooler_temperature-entry] +# name: test_all_entities[da_ref_normal_01001][number.refrigerator_fridge_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), 'area_id': None, 'capabilities': dict({ - 'max': 7, - 'min': 1, + 'max': 7.0, + 'min': 1.0, 'mode': , 'step': 1, }), @@ -305,7 +247,7 @@ 'disabled_by': None, 'domain': 'number', 'entity_category': , - 'entity_id': 'number.frigo_cooler_temperature', + 'entity_id': 'number.refrigerator_fridge_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -317,32 +259,32 @@ }), 'original_device_class': , 'original_icon': None, - 'original_name': 'Cooler temperature', + 'original_name': 'Fridge temperature', 'platform': 'smartthings', 'previous_unique_id': None, 'supported_features': 0, 'translation_key': 'cooler_temperature', - 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', + 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', 'unit_of_measurement': , }) # --- -# name: test_all_entities[da_ref_normal_01011][number.frigo_cooler_temperature-state] +# name: test_all_entities[da_ref_normal_01001][number.refrigerator_fridge_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ 'device_class': 'temperature', - 'friendly_name': 'Frigo Cooler temperature', - 'max': 7, - 'min': 1, + 'friendly_name': 'Refrigerator Fridge temperature', + 'max': 7.0, + 'min': 1.0, 'mode': , 'step': 1, 'unit_of_measurement': , }), 'context': , - 'entity_id': 'number.frigo_cooler_temperature', + 'entity_id': 'number.refrigerator_fridge_temperature', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': '6', + 'state': '3.0', }) # --- # name: test_all_entities[da_ref_normal_01011][number.frigo_freezer_temperature-entry] @@ -403,6 +345,64 @@ 'state': '-17', }) # --- +# name: test_all_entities[da_ref_normal_01011][number.frigo_fridge_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 7, + 'min': 1, + 'mode': , + 'step': 1, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.frigo_fridge_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Fridge temperature', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': 'cooler_temperature', + 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_thermostatCoolingSetpoint_coolingSetpoint_coolingSetpoint', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[da_ref_normal_01011][number.frigo_fridge_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Frigo Fridge temperature', + 'max': 7, + 'min': 1, + 'mode': , + 'step': 1, + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'number.frigo_fridge_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '6', + }) +# --- # name: test_all_entities[da_wm_wm_000001][number.washer_rinse_cycles-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/smartthings/snapshots/test_sensor.ambr b/tests/components/smartthings/snapshots/test_sensor.ambr index 569838471fc..8b3e91ee263 100644 --- a/tests/components/smartthings/snapshots/test_sensor.ambr +++ b/tests/components/smartthings/snapshots/test_sensor.ambr @@ -4589,58 +4589,6 @@ 'state': '218', }) # --- -# name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_cooler_temperature-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - '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.refrigerator_cooler_temperature', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Cooler temperature', - 'platform': 'smartthings', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': 'cooler_temperature', - 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_temperatureMeasurement_temperature_temperature', - 'unit_of_measurement': , - }) -# --- -# name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_cooler_temperature-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Refrigerator Cooler temperature', - 'state_class': , - 'unit_of_measurement': , - }), - 'context': , - 'entity_id': 'sensor.refrigerator_cooler_temperature', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': '3', - }) -# --- # name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4858,6 +4806,58 @@ 'state': '-18', }) # --- +# name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_fridge_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + '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.refrigerator_fridge_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Fridge temperature', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': 'cooler_temperature', + 'unique_id': '7db87911-7dce-1cf2-7119-b953432a2f09_cooler_temperatureMeasurement_temperature_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_fridge_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Refrigerator Fridge temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.refrigerator_fridge_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3', + }) +# --- # name: test_all_entities[da_ref_normal_000001][sensor.refrigerator_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4970,58 +4970,6 @@ 'state': '0.0135559777781698', }) # --- -# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_cooler_temperature-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - '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.refrigerator_cooler_temperature', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Cooler temperature', - 'platform': 'smartthings', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': 'cooler_temperature', - 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_temperatureMeasurement_temperature_temperature', - 'unit_of_measurement': , - }) -# --- -# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_cooler_temperature-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Refrigerator Cooler temperature', - 'state_class': , - 'unit_of_measurement': , - }), - 'context': , - 'entity_id': 'sensor.refrigerator_cooler_temperature', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': '3', - }) -# --- # name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -5239,6 +5187,58 @@ 'state': '-18', }) # --- +# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_fridge_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + '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.refrigerator_fridge_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Fridge temperature', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': 'cooler_temperature', + 'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_temperatureMeasurement_temperature_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_fridge_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Refrigerator Fridge temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.refrigerator_fridge_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '3', + }) +# --- # name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -5351,58 +5351,6 @@ 'state': '0.0270189050030708', }) # --- -# name: test_all_entities[da_ref_normal_01011][sensor.frigo_cooler_temperature-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - '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.frigo_cooler_temperature', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': , - 'original_icon': None, - 'original_name': 'Cooler temperature', - 'platform': 'smartthings', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': 'cooler_temperature', - 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_temperatureMeasurement_temperature_temperature', - 'unit_of_measurement': , - }) -# --- -# name: test_all_entities[da_ref_normal_01011][sensor.frigo_cooler_temperature-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'device_class': 'temperature', - 'friendly_name': 'Frigo Cooler temperature', - 'state_class': , - 'unit_of_measurement': , - }), - 'context': , - 'entity_id': 'sensor.frigo_cooler_temperature', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': '6', - }) -# --- # name: test_all_entities[da_ref_normal_01011][sensor.frigo_energy-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -5620,6 +5568,58 @@ 'state': '-17', }) # --- +# name: test_all_entities[da_ref_normal_01011][sensor.frigo_fridge_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + '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.frigo_fridge_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Fridge temperature', + 'platform': 'smartthings', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': 'cooler_temperature', + 'unique_id': '5758b2ec-563e-f39b-ec39-208e54aabf60_cooler_temperatureMeasurement_temperature_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[da_ref_normal_01011][sensor.frigo_fridge_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Frigo Fridge temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.frigo_fridge_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '6', + }) +# --- # name: test_all_entities[da_ref_normal_01011][sensor.frigo_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/smartthings/test_binary_sensor.py b/tests/components/smartthings/test_binary_sensor.py index 42534e5b691..45643f80d2c 100644 --- a/tests/components/smartthings/test_binary_sensor.py +++ b/tests/components/smartthings/test_binary_sensor.py @@ -51,7 +51,7 @@ async def test_state_update( """Test state update.""" await setup_integration(hass, mock_config_entry) - assert hass.states.get("binary_sensor.refrigerator_cooler_door").state == STATE_OFF + assert hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_OFF await trigger_update( hass, @@ -63,7 +63,7 @@ async def test_state_update( component="cooler", ) - assert hass.states.get("binary_sensor.refrigerator_cooler_door").state == STATE_ON + assert hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_ON @pytest.mark.parametrize("device_fixture", ["da_ref_normal_000001"]) @@ -75,14 +75,14 @@ async def test_availability( """Test availability.""" await setup_integration(hass, mock_config_entry) - assert hass.states.get("binary_sensor.refrigerator_cooler_door").state == STATE_OFF + assert hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_OFF await trigger_health_update( hass, devices, "7db87911-7dce-1cf2-7119-b953432a2f09", HealthStatus.OFFLINE ) assert ( - hass.states.get("binary_sensor.refrigerator_cooler_door").state + hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_UNAVAILABLE ) @@ -90,7 +90,7 @@ async def test_availability( hass, devices, "7db87911-7dce-1cf2-7119-b953432a2f09", HealthStatus.ONLINE ) - assert hass.states.get("binary_sensor.refrigerator_cooler_door").state == STATE_OFF + assert hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_OFF @pytest.mark.parametrize("device_fixture", ["da_ref_normal_000001"]) @@ -102,7 +102,7 @@ async def test_availability_at_start( """Test unavailable at boot.""" await setup_integration(hass, mock_config_entry) assert ( - hass.states.get("binary_sensor.refrigerator_cooler_door").state + hass.states.get("binary_sensor.refrigerator_fridge_door").state == STATE_UNAVAILABLE )