diff --git a/tests/components/zonneplan/test_number.py b/tests/components/zonneplan/test_number.py index 1124cac145f1..ec03bc2a1007 100644 --- a/tests/components/zonneplan/test_number.py +++ b/tests/components/zonneplan/test_number.py @@ -26,9 +26,8 @@ from pyzonneplan.const import BatteryMode, MarketTimeResolution from syrupy.assertion import SnapshotAssertion from homeassistant.components.number import ( - ATTR_MAX, - ATTR_MIN, DOMAIN as NUMBER_DOMAIN, + NumberEntityCapabilityAttribute, NumberService, NumberServiceArgument, ) @@ -158,8 +157,8 @@ async def test_power_limit_range_fallback( await hass.async_block_till_done() assert (state := hass.states.get(MAX_CHARGE_POWER_ENTITY_ID)) - assert state.attributes[ATTR_MIN] == 0 - assert state.attributes[ATTR_MAX] == 10000 + assert state.attributes[NumberEntityCapabilityAttribute.MIN] == 0 + assert state.attributes[NumberEntityCapabilityAttribute.MAX] == 10000 @pytest.mark.usefixtures("entity_registry_enabled_by_default") diff --git a/tests/components/zonneplan/test_select.py b/tests/components/zonneplan/test_select.py index 96fa93c1b407..aabc4ec3cacb 100644 --- a/tests/components/zonneplan/test_select.py +++ b/tests/components/zonneplan/test_select.py @@ -23,8 +23,8 @@ from pyzonneplan.const import BatteryMode from syrupy.assertion import SnapshotAssertion from homeassistant.components.select import ( - ATTR_OPTIONS, DOMAIN as SELECT_DOMAIN, + SelectEntityCapabilityAttribute, SelectService, SelectServiceArgument, ) @@ -101,7 +101,7 @@ async def test_select_options( assert (state := hass.states.get(CONTROL_MODE_ENTITY_ID)) assert state.state == control_mode - assert state.attributes[ATTR_OPTIONS] == expected_options + assert state.attributes[SelectEntityCapabilityAttribute.OPTIONS] == expected_options @pytest.mark.usefixtures("init_integration") @@ -302,7 +302,7 @@ async def test_select_control_mode_unavailable_at_setup( assert (state := hass.states.get(CONTROL_MODE_ENTITY_ID)) assert state.state == "self_consumption" - assert state.attributes[ATTR_OPTIONS] == [ + assert state.attributes[SelectEntityCapabilityAttribute.OPTIONS] == [ "self_consumption", "home_optimization", "dynamic_charging",