Fix unknown data in vultr (#85627)

This commit is contained in:
epenet 2023-01-10 17:29:17 +01:00 committed by GitHub
parent 67f8d82818
commit 3d02b5af21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@
"DCID": "1",
"default_password": "nreqnusibni",
"date_created": "2014-10-13 14:45:41",
"pending_charges": "not a number",
"pending_charges": "3.72",
"status": "active",
"cost_per_month": "73.25",
"current_bandwidth_gb": 957.457,

View file

@ -82,7 +82,7 @@ def test_sensor(hass: HomeAssistant):
elif device.subscription == "123456": # Custom name with 1 {}
assert device.name == "Server Pending Charges"
assert device.state == "not a number"
assert device.state == 3.72
tested += 1
elif device.subscription == "555555": # No {} in name