1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Clean up or correct from removed deprecation for MQTT platform (#82684)

Clean up or correct from removed deprecation
This commit is contained in:
Jan Bouwhuis
2022-11-25 16:11:22 +01:00
committed by GitHub
parent 34757fa539
commit 4335b0db25
27 changed files with 31 additions and 35 deletions

View File

@@ -2720,8 +2720,8 @@ async def test_subscribe_connection_status(
assert mqtt_connected_calls[1] is False
# Test deprecated YAML configuration under the platform key
# Scheduled to be removed in HA core 2022.12
# Test existence of removed YAML configuration under the platform key
# This warning and test is to be removed from HA core 2023.6
async def test_one_deprecation_warning_per_platform(
hass, mqtt_mock_entry_with_yaml_config, caplog
):
@@ -2810,8 +2810,6 @@ async def test_publish_or_subscribe_without_valid_config_entry(hass, caplog):
@patch("homeassistant.components.mqtt.PLATFORMS", [Platform.LIGHT])
async def test_reload_entry_with_new_config(hass, tmp_path):
"""Test reloading the config entry with a new yaml config."""
# Test deprecated YAML configuration under the platform key
# Scheduled to be removed in HA core 2022.12
config_old = {
"mqtt": {"light": [{"name": "test_old1", "command_topic": "test-topic_old"}]}
}