Modify climate turn_on/off backwards compatibility check (#109195)

* Modify climate turn_on/off backwards compatibility check

* Fix logger message

* Comments

* Fix demo

* devolo

* ecobee

* Some more

* Fix missing feature flag

* some more

* and some more

* Remove demo change

* Add back demo change

* Fix demo

* Update comments
This commit is contained in:
G Johansson
2024-01-31 16:29:36 +01:00
committed by GitHub
parent 816c2e9500
commit ddb56fe20d
8 changed files with 71 additions and 85 deletions

View File

@@ -531,16 +531,9 @@ async def test_implicit_warning_not_implemented_turn_on_off_feature(
assert (
"Entity climate.test (<class 'tests.components.climate.test_init."
"test_implicit_warning_not_implemented_turn_on_off_feature.<locals>.MockClimateEntityTest'>)"
" implements HVACMode(s): off and therefore implicitly supports the off service without setting"
" the proper ClimateEntityFeature. Please report it to the author of the 'test' custom integration"
in caplog.text
)
assert (
"Entity climate.test (<class 'tests.components.climate.test_init."
"test_implicit_warning_not_implemented_turn_on_off_feature.<locals>.MockClimateEntityTest'>)"
" implements HVACMode(s): heat and therefore implicitly supports the heat service without setting"
" the proper ClimateEntityFeature. Please report it to the author of the 'test' custom integration"
in caplog.text
" implements HVACMode(s): off, heat and therefore implicitly supports the turn_on/turn_off"
" methods without setting the proper ClimateEntityFeature. Please report it to the author"
" of the 'test' custom integration" in caplog.text
)
@@ -608,10 +601,6 @@ async def test_no_warning_implemented_turn_on_off_feature(
not in caplog.text
)
assert (
"implements HVACMode.off and therefore implicitly implements the off method without setting"
not in caplog.text
)
assert (
"implements HVACMode.heat and therefore implicitly implements the heat method without setting"
" implements HVACMode(s): off, heat and therefore implicitly supports the off, heat methods"
not in caplog.text
)