mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user