Minor tweaks for sensor device automations (#27829)
* Minor tweaks for sensor device automations * Change unit_of_measurement to suffix in extra_fields * Address review comment
This commit is contained in:
1 parent
04dbe5bc84
commit
4700d647b0
3 files changed
+22
-30
No files matched your search
@@ -101,13 +101,13 @@ async def test_get_trigger_capabilities(hass, device_reg, entity_reg):
|
||||
expected_capabilities = {
|
||||
"extra_fields": [
|
||||
{
|
||||
"description": {"unit_of_measurement": "%"},
|
||||
"description": {"suffix": "%"},
|
||||
"name": "above",
|
||||
"optional": True,
|
||||
"type": "float",
|
||||
},
|
||||
{
|
||||
"description": {"unit_of_measurement": "%"},
|
||||
"description": {"suffix": "%"},
|
||||
"name": "below",
|
||||
"optional": True,
|
||||
"type": "float",
|
||||
|
||||
Reference in new issue
Block a user