mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Mod version
This commit is contained in:
parent
1dff94e29c
commit
be3b18cebf
@ -49,9 +49,9 @@ class LightState(StrEnum):
|
||||
OFF = "off"
|
||||
|
||||
|
||||
# The STATE_ON constant is deprecated as of Home Assistant 2024.10
|
||||
# The STATE_ON constant is deprecated as of Home Assistant 2024.11
|
||||
# Please use the LightState enum instead.
|
||||
_DEPRECATED_STATE_ON = DeprecatedConstantEnum(LightState.ON, "2025.10")
|
||||
_DEPRECATED_STATE_ON = DeprecatedConstantEnum(LightState.ON, "2025.11")
|
||||
|
||||
|
||||
class LightEntityFeature(IntFlag):
|
||||
|
@ -2828,7 +2828,7 @@ def test_deprecated_stream_type_constants(
|
||||
module: ModuleType,
|
||||
) -> None:
|
||||
"""Test deprecated stream type constants."""
|
||||
import_and_test_deprecated_constant_enum(caplog, module, enum, "STATE_", "2025.10")
|
||||
import_and_test_deprecated_constant_enum(caplog, module, enum, "STATE_", "2025.11")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
@ -2845,4 +2845,4 @@ def test_deprecated_state_constants(
|
||||
module: ModuleType,
|
||||
) -> None:
|
||||
"""Test deprecated stream type constants."""
|
||||
import_and_test_deprecated_constant_enum(caplog, module, enum, "STATE_", "2025.10")
|
||||
import_and_test_deprecated_constant_enum(caplog, module, enum, "STATE_", "2025.11")
|
||||
|
Loading…
x
Reference in New Issue
Block a user