From cada2f84a9e719122ee0ab9893e07ca07ed84e2f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 11 Jun 2025 18:13:03 +0000 Subject: [PATCH] Hotfix ruff warnings --- tests/components/history_stats/test_init.py | 2 +- tests/components/homematicip_cloud/test_hap.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/history_stats/test_init.py b/tests/components/history_stats/test_init.py index 37b5416fdbb..f418b1f7ef1 100644 --- a/tests/components/history_stats/test_init.py +++ b/tests/components/history_stats/test_init.py @@ -69,7 +69,7 @@ def history_stats_config_entry( """Fixture to create a history_stats config entry.""" config_entry = MockConfigEntry( data={}, - domain=DOMAIN, + domain=HISTORY_STATS_DOMAIN, options={ CONF_NAME: DEFAULT_NAME, CONF_ENTITY_ID: sensor_entity_entry.entity_id, diff --git a/tests/components/homematicip_cloud/test_hap.py b/tests/components/homematicip_cloud/test_hap.py index 94d6f9d5dd6..c258c85ac93 100644 --- a/tests/components/homematicip_cloud/test_hap.py +++ b/tests/components/homematicip_cloud/test_hap.py @@ -237,7 +237,7 @@ async def test_get_state_after_disconnect( hass: HomeAssistant, hmip_config_entry: MockConfigEntry, simple_mock_home ) -> None: """Test get state after disconnect.""" - hass.config.components.add(DOMAIN) + hass.config.components.add(HMIPC_DOMAIN) hap = HomematicipHAP(hass, hmip_config_entry) assert hap