Remove stale test for mqtt climate (#114443)

This commit is contained in:
Jan Bouwhuis 2024-03-29 16:01:50 +01:00 committed by GitHub
parent 54c5f18aac
commit 5e3ce80488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,74 +148,6 @@ async def test_preset_none_in_preset_modes(
assert "preset_modes must not include preset mode 'none'" in caplog.text assert "preset_modes must not include preset mode 'none'" in caplog.text
@pytest.mark.parametrize(
("hass_config", "parameter"),
[
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"away_mode_command_topic": "away-mode-command-topic"},),
),
"away_mode_command_topic",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"away_mode_state_topic": "away-mode-state-topic"},),
),
"away_mode_state_topic",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"away_mode_state_template": "{{ value_json }}"},),
),
"away_mode_state_template",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"hold_mode_command_topic": "hold-mode-command-topic"},),
),
"hold_mode_command_topic",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"hold_mode_command_template": "hold-mode-command-template"},),
),
"hold_mode_command_template",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"hold_mode_state_topic": "hold-mode-state-topic"},),
),
"hold_mode_state_topic",
),
(
help_custom_config(
climate.DOMAIN,
DEFAULT_CONFIG,
({"hold_mode_state_template": "{{ value_json }}"},),
),
"hold_mode_state_template",
),
],
)
async def test_preset_modes_deprecation_guard(
hass: HomeAssistant, caplog: pytest.LogCaptureFixture, parameter: str
) -> None:
"""Test the configuration for invalid legacy parameters."""
assert f"[{parameter}] is an invalid option for [mqtt]. Check: mqtt->mqtt->climate->0->{parameter}"
@pytest.mark.parametrize("hass_config", [DEFAULT_CONFIG]) @pytest.mark.parametrize("hass_config", [DEFAULT_CONFIG])
async def test_supported_features( async def test_supported_features(
hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator