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:
Bouwe Westerdijk 2021-01-08 02:44:00 +01:00 committed by GitHub
parent 20e2493f68
commit cb3b37a87a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 37 additions and 37 deletions

View file

@ -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