Correct Plugwise sensor scaling (#44344)
* Remove sensor-scaling, handled by the back-end
* Correct assert-values
* Update test-fixtures
* Revert "Correct assert-values"
This reverts commit f1a1891f73
.
* Adapt value to the updated userdata set
* Link to plugwise v0.8.5, update fixtures
* Correct test-values
* Fix typo
This commit is contained in:
parent
20e2493f68
commit
cb3b37a87a
33 changed files with 37 additions and 37 deletions
|
@ -65,13 +65,13 @@ async def test_p1_dsmr_sensor_entities(hass, mock_smile_p1):
|
|||
assert float(state.state) == -2761.0
|
||||
|
||||
state = hass.states.get("sensor.p1_electricity_consumed_off_peak_cumulative")
|
||||
assert float(state.state) == 551.1
|
||||
assert float(state.state) == 551.09
|
||||
|
||||
state = hass.states.get("sensor.p1_electricity_produced_peak_point")
|
||||
assert float(state.state) == 2761.0
|
||||
|
||||
state = hass.states.get("sensor.p1_electricity_consumed_peak_cumulative")
|
||||
assert float(state.state) == 442.9
|
||||
assert float(state.state) == 442.932
|
||||
|
||||
state = hass.states.get("sensor.p1_gas_consumed_cumulative")
|
||||
assert float(state.state) == 584.85
|
||||
|
@ -83,7 +83,7 @@ async def test_stretch_sensor_entities(hass, mock_stretch):
|
|||
assert entry.state == ENTRY_STATE_LOADED
|
||||
|
||||
state = hass.states.get("sensor.koelkast_92c4a_electricity_consumed")
|
||||
assert float(state.state) == 53.2
|
||||
assert float(state.state) == 50.5
|
||||
|
||||
state = hass.states.get("sensor.droger_52559_electricity_consumed_interval")
|
||||
assert float(state.state) == 1.06
|
||||
assert float(state.state) == 0.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue