Skip to content

Commit

Permalink
Adjust tests again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jul 14, 2022
1 parent 3519aa0 commit f42a73d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/components/plugwise/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def test_adam_climate_binary_sensor_change(
hass: HomeAssistant, mock_smile_adam: MagicMock, init_integration: MockConfigEntry
) -> None:
"""Test change of climate related binary_sensor entities."""
state = hass.states.get("binary_sensor.smile_adam_plugwise_notification")
state = hass.states.get("binary_sensor.adam_plugwise_notification")
assert state
assert state.state == STATE_ON
assert "warning_msg" in state.attributes
Expand Down
12 changes: 6 additions & 6 deletions tests/components/plugwise/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def test_adam_climate_sensor_entities(
hass: HomeAssistant, mock_smile_adam: MagicMock, init_integration: MockConfigEntry
) -> None:
"""Test creation of climate related sensor entities."""
state = hass.states.get("sensor.smile_adam_outdoor_temperature")
state = hass.states.get("sensor.adam_outdoor_temperature")
assert state
assert float(state.state) == 7.81

Expand Down Expand Up @@ -65,23 +65,23 @@ async def test_p1_dsmr_sensor_entities(
hass: HomeAssistant, mock_smile_p1: MagicMock, init_integration: MockConfigEntry
) -> None:
"""Test creation of power related sensor entities."""
state = hass.states.get("sensor.smile_p1_net_electricity_point")
state = hass.states.get("sensor.p1_net_electricity_point")
assert state
assert float(state.state) == -2816.0

state = hass.states.get("sensor.smile_p1_electricity_consumed_off_peak_cumulative")
state = hass.states.get("sensor.p1_electricity_consumed_off_peak_cumulative")
assert state
assert float(state.state) == 551.09

state = hass.states.get("sensor.smile_p1_electricity_produced_peak_point")
state = hass.states.get("sensor.p1_electricity_produced_peak_point")
assert state
assert float(state.state) == 2816.0

state = hass.states.get("sensor.smile_p1_electricity_consumed_peak_cumulative")
state = hass.states.get("sensor.p1_electricity_consumed_peak_cumulative")
assert state
assert float(state.state) == 442.932

state = hass.states.get("sensor.smile_p1_gas_consumed_cumulative")
state = hass.states.get("sensor.p1_gas_consumed_cumulative")
assert state
assert float(state.state) == 584.85

Expand Down

0 comments on commit f42a73d

Please sign in to comment.