1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use percentage constant in more integrations (#40165)

This commit is contained in:
springstan
2020-09-19 17:30:22 +02:00
committed by GitHub
parent 711ca6aff5
commit 7de1fe7416
4 changed files with 9 additions and 8 deletions

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