Fix unknown data in vultr (#85627)
This commit is contained in:
parent
67f8d82818
commit
3d02b5af21
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
||||||
"DCID": "1",
|
"DCID": "1",
|
||||||
"default_password": "nreqnusibni",
|
"default_password": "nreqnusibni",
|
||||||
"date_created": "2014-10-13 14:45:41",
|
"date_created": "2014-10-13 14:45:41",
|
||||||
"pending_charges": "not a number",
|
"pending_charges": "3.72",
|
||||||
"status": "active",
|
"status": "active",
|
||||||
"cost_per_month": "73.25",
|
"cost_per_month": "73.25",
|
||||||
"current_bandwidth_gb": 957.457,
|
"current_bandwidth_gb": 957.457,
|
||||||
|
|
|
@ -82,7 +82,7 @@ def test_sensor(hass: HomeAssistant):
|
||||||
|
|
||||||
elif device.subscription == "123456": # Custom name with 1 {}
|
elif device.subscription == "123456": # Custom name with 1 {}
|
||||||
assert device.name == "Server Pending Charges"
|
assert device.name == "Server Pending Charges"
|
||||||
assert device.state == "not a number"
|
assert device.state == 3.72
|
||||||
tested += 1
|
tested += 1
|
||||||
|
|
||||||
elif device.subscription == "555555": # No {} in name
|
elif device.subscription == "555555": # No {} in name
|
||||||
|
|
Loading…
Add table
Reference in a new issue