Use preferred spelling of "setpoint" in smartthings (#145319)

* Use preferred spelling of "setpoint" in `smartthings`

Change three occurrences of "set point" to "setpoint" to match the preferred spelling in Home Assistant.

* Update test_sensor.ambr

* Update test_sensor.ambr (2)
This commit is contained in:
Norbert Rittel 2025-05-20 14:31:51 +02:00 committed by GitHub
parent 0813adc327
commit b16d4dd94b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 27 deletions

View File

@ -405,7 +405,7 @@
} }
}, },
"oven_setpoint": { "oven_setpoint": {
"name": "Set point" "name": "Setpoint"
}, },
"energy_difference": { "energy_difference": {
"name": "Energy difference" "name": "Energy difference"
@ -472,13 +472,13 @@
} }
}, },
"thermostat_cooling_setpoint": { "thermostat_cooling_setpoint": {
"name": "Cooling set point" "name": "Cooling setpoint"
}, },
"thermostat_fan_mode": { "thermostat_fan_mode": {
"name": "Fan mode" "name": "Fan mode"
}, },
"thermostat_heating_setpoint": { "thermostat_heating_setpoint": {
"name": "Heating set point" "name": "Heating setpoint"
}, },
"thermostat_mode": { "thermostat_mode": {
"name": "Mode" "name": "Mode"

View File

@ -3635,7 +3635,7 @@
'state': 'others', 'state': 'others',
}) })
# --- # ---
# name: test_all_entities[da_ks_microwave_0101x][sensor.microwave_set_point-entry] # name: test_all_entities[da_ks_microwave_0101x][sensor.microwave_setpoint-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({
}), }),
@ -3648,7 +3648,7 @@
'disabled_by': None, 'disabled_by': None,
'domain': 'sensor', 'domain': 'sensor',
'entity_category': None, 'entity_category': None,
'entity_id': 'sensor.microwave_set_point', 'entity_id': 'sensor.microwave_setpoint',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
'icon': None, 'icon': None,
@ -3660,7 +3660,7 @@
}), }),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Set point', 'original_name': 'Setpoint',
'platform': 'smartthings', 'platform': 'smartthings',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -3669,15 +3669,15 @@
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}) })
# --- # ---
# name: test_all_entities[da_ks_microwave_0101x][sensor.microwave_set_point-state] # name: test_all_entities[da_ks_microwave_0101x][sensor.microwave_setpoint-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'temperature', 'device_class': 'temperature',
'friendly_name': 'Microwave Set point', 'friendly_name': 'Microwave Setpoint',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.microwave_set_point', 'entity_id': 'sensor.microwave_setpoint',
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,
@ -4033,7 +4033,7 @@
'state': 'bake', 'state': 'bake',
}) })
# --- # ---
# name: test_all_entities[da_ks_oven_01061][sensor.oven_set_point-entry] # name: test_all_entities[da_ks_oven_01061][sensor.oven_setpoint-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({
}), }),
@ -4046,7 +4046,7 @@
'disabled_by': None, 'disabled_by': None,
'domain': 'sensor', 'domain': 'sensor',
'entity_category': None, 'entity_category': None,
'entity_id': 'sensor.oven_set_point', 'entity_id': 'sensor.oven_setpoint',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
'icon': None, 'icon': None,
@ -4058,7 +4058,7 @@
}), }),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Set point', 'original_name': 'Setpoint',
'platform': 'smartthings', 'platform': 'smartthings',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -4067,15 +4067,15 @@
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}) })
# --- # ---
# name: test_all_entities[da_ks_oven_01061][sensor.oven_set_point-state] # name: test_all_entities[da_ks_oven_01061][sensor.oven_setpoint-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'temperature', 'device_class': 'temperature',
'friendly_name': 'Oven Set point', 'friendly_name': 'Oven Setpoint',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.oven_set_point', 'entity_id': 'sensor.oven_setpoint',
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,
@ -4488,7 +4488,7 @@
'state': 'bake', 'state': 'bake',
}) })
# --- # ---
# name: test_all_entities[da_ks_range_0101x][sensor.vulcan_set_point-entry] # name: test_all_entities[da_ks_range_0101x][sensor.vulcan_setpoint-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({
}), }),
@ -4501,7 +4501,7 @@
'disabled_by': None, 'disabled_by': None,
'domain': 'sensor', 'domain': 'sensor',
'entity_category': None, 'entity_category': None,
'entity_id': 'sensor.vulcan_set_point', 'entity_id': 'sensor.vulcan_setpoint',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
'icon': None, 'icon': None,
@ -4513,7 +4513,7 @@
}), }),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Set point', 'original_name': 'Setpoint',
'platform': 'smartthings', 'platform': 'smartthings',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -4522,15 +4522,15 @@
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}) })
# --- # ---
# name: test_all_entities[da_ks_range_0101x][sensor.vulcan_set_point-state] # name: test_all_entities[da_ks_range_0101x][sensor.vulcan_setpoint-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'temperature', 'device_class': 'temperature',
'friendly_name': 'Vulcan Set point', 'friendly_name': 'Vulcan Setpoint',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.vulcan_set_point', 'entity_id': 'sensor.vulcan_setpoint',
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,
@ -11374,7 +11374,7 @@
'state': 'cool', 'state': 'cool',
}) })
# --- # ---
# name: test_all_entities[sensibo_airconditioner_1][sensor.office_cooling_set_point-entry] # name: test_all_entities[sensibo_airconditioner_1][sensor.office_cooling_setpoint-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({
}), }),
@ -11387,7 +11387,7 @@
'disabled_by': None, 'disabled_by': None,
'domain': 'sensor', 'domain': 'sensor',
'entity_category': None, 'entity_category': None,
'entity_id': 'sensor.office_cooling_set_point', 'entity_id': 'sensor.office_cooling_setpoint',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
'icon': None, 'icon': None,
@ -11399,7 +11399,7 @@
}), }),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Cooling set point', 'original_name': 'Cooling setpoint',
'platform': 'smartthings', 'platform': 'smartthings',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -11408,15 +11408,15 @@
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}) })
# --- # ---
# name: test_all_entities[sensibo_airconditioner_1][sensor.office_cooling_set_point-state] # name: test_all_entities[sensibo_airconditioner_1][sensor.office_cooling_setpoint-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'temperature', 'device_class': 'temperature',
'friendly_name': 'Office Cooling set point', 'friendly_name': 'Office Cooling setpoint',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>, 'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.office_cooling_set_point', 'entity_id': 'sensor.office_cooling_setpoint',
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,