Remove deprecated SMA config (#26306)
This commit is contained in:
1 parent
299695ca24
commit
2f6bdc8643
2 files changed
-43
No files matched your search
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user