Add support for static typing for the PECO library (#68707)

This commit is contained in:
IceBotYT 2022-03-29 02:47:20 -04:00 committed by GitHub
parent 8714beb5e7
commit fb14ae211e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 33 deletions

View file

@ -66,7 +66,7 @@ async def test_sensor_available(
if sensor == "total_customers_out":
assert sensor_entity.state == "123"
elif sensor == "total_percent_customers_out":
assert sensor_entity.state == "15.589"
assert sensor_entity.state == "1"
elif sensor == "total_outage_count":
assert sensor_entity.state == "456"
elif sensor == "total_customers_served":
@ -125,7 +125,7 @@ async def test_sensor_available(
if sensor == "bucks_customers_out":
assert sensor_entity.state == "123"
elif sensor == "bucks_percent_customers_out":
assert sensor_entity.state == "15.589"
assert sensor_entity.state == "1"
elif sensor == "bucks_outage_count":
assert sensor_entity.state == "456"
elif sensor == "bucks_customers_served":