1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove deprecated SMA config (#26306)

This commit is contained in:
Paulus Schoutsen
2019-08-30 16:41:07 -07:00
committed by GitHub
parent 299695ca24
commit 2f6bdc8643
2 changed files with 0 additions and 43 deletions

View File

@@ -15,24 +15,6 @@ BASE_CFG = {
}
async def test_sma_config_old(hass):
"""Test old config."""
sensors = {"current_consumption": ["current_consumption"]}
with assert_setup_component(1):
assert await async_setup_component(
hass, DOMAIN, {DOMAIN: dict(BASE_CFG, sensors=sensors)}
)
state = hass.states.get("sensor.current_consumption")
assert state
assert "unit_of_measurement" in state.attributes
assert "current_consumption" in state.attributes
state = hass.states.get("sensor.my_sensor")
assert not state
async def test_sma_config(hass):
"""Test new config."""
sensors = ["current_consumption"]