Skip to content

Commit 0283134

Browse files
authored
Update test_charge_point.py
1 parent f72c508 commit 0283134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_charge_point.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ async def test_cms_responses(hass):
6767
)
6868
except asyncio.TimeoutError:
6969
pass
70-
assert int(cs.get_metric("test_cpid","Energy.Active.Import.Register")) == 1305570
71-
assert cs.get_unit("test_cpid","Energy.Active.Import.Register") == "Wh"
70+
assert int(cs.get_metric("test_cpid","Energy.Active.Import.Register")) == int(1305570/1000)
71+
assert cs.get_unit("test_cpid","Energy.Active.Import.Register") == "kWh"
7272
await async_unload_entry(hass, config_entry)
7373
await hass.async_block_till_done()
7474

0 commit comments

Comments
 (0)