Use percentage constant in more integrations (#40165)

This commit is contained in:
springstan authored and GitHub committed 2020-09-19 10:30:22 -05:00
1 parent 711ca6aff5
commit 7de1fe7416
4 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -72,7 +72,7 @@ async def test_5e850i(hass):
"device_class": "battery",
"friendly_name": "Ups1 Battery Charge",
"state": "Online",
"unit_of_measurement": "%",
"unit_of_measurement": PERCENTAGE,
}
# Only test for a subset of attributes in case
# HA changes the implementation and a new one appears
@@ -97,7 +97,7 @@ async def test_5e650i(hass):
"device_class": "battery",
"friendly_name": "Ups1 Battery Charge",
"state": "Online Battery Charging",
"unit_of_measurement": "%",
"unit_of_measurement": PERCENTAGE,
}
# Only test for a subset of attributes in case
# HA changes the implementation and a new one appears
@@ -125,7 +125,7 @@ async def test_backupsses600m1(hass):
"device_class": "battery",
"friendly_name": "Ups1 Battery Charge",
"state": "Online",
"unit_of_measurement": "%",
"unit_of_measurement": PERCENTAGE,
}
# Only test for a subset of attributes in case
# HA changes the implementation and a new one appears