diff --git a/tests/components/home_connect/conftest.py b/tests/components/home_connect/conftest.py index 516701f2360..c3e5e859870 100644 --- a/tests/components/home_connect/conftest.py +++ b/tests/components/home_connect/conftest.py @@ -119,7 +119,7 @@ def mock_config_entry_v1_2(token_entry: dict[str, Any]) -> MockConfigEntry: ) -@pytest.fixture +@pytest.fixture(autouse=True) async def setup_credentials(hass: HomeAssistant) -> None: """Fixture to setup credentials.""" assert await async_setup_component(hass, "application_credentials", {}) diff --git a/tests/components/home_connect/test_binary_sensor.py b/tests/components/home_connect/test_binary_sensor.py index 46da0fc0d8f..5dee63cdc74 100644 --- a/tests/components/home_connect/test_binary_sensor.py +++ b/tests/components/home_connect/test_binary_sensor.py @@ -46,7 +46,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -110,7 +109,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -174,7 +172,6 @@ async def test_binary_sensors_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -279,7 +276,6 @@ async def test_binary_sensors_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Tests for Home Connect Fridge appliance door states.""" @@ -315,7 +311,6 @@ async def test_connected_sensor_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: diff --git a/tests/components/home_connect/test_button.py b/tests/components/home_connect/test_button.py index cb3a16fa76c..50997d83b94 100644 --- a/tests/components/home_connect/test_button.py +++ b/tests/components/home_connect/test_button.py @@ -38,7 +38,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -102,7 +101,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -177,7 +175,6 @@ async def test_button_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -242,7 +239,6 @@ async def test_button_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, entity_id: str, method_call: str, @@ -271,7 +267,6 @@ async def test_command_button_exception( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test if button entities availability are based on the appliance connection state.""" @@ -308,7 +303,6 @@ async def test_stop_program_button_exception( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test if button entities availability are based on the appliance connection state.""" diff --git a/tests/components/home_connect/test_config_flow.py b/tests/components/home_connect/test_config_flow.py index 19182a12194..39ce4eefacb 100644 --- a/tests/components/home_connect/test_config_flow.py +++ b/tests/components/home_connect/test_config_flow.py @@ -145,7 +145,6 @@ async def test_reauth_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, hass_client_no_auth: ClientSessionGenerator, aioclient_mock: AiohttpClientMocker, @@ -200,7 +199,6 @@ async def test_reauth_flow_with_different_account( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, hass_client_no_auth: ClientSessionGenerator, aioclient_mock: AiohttpClientMocker, diff --git a/tests/components/home_connect/test_coordinator.py b/tests/components/home_connect/test_coordinator.py index 36ca5cf0879..99185e7d373 100644 --- a/tests/components/home_connect/test_coordinator.py +++ b/tests/components/home_connect/test_coordinator.py @@ -79,7 +79,6 @@ def platforms() -> list[str]: return [Platform.SENSOR, Platform.SWITCH] -@pytest.mark.usefixtures("setup_credentials") @pytest.mark.parametrize("platforms", [("binary_sensor",)]) @pytest.mark.parametrize("appliance", ["Washer"], indirect=True) async def test_coordinator_failure_refresh_and_stream( @@ -213,7 +212,6 @@ async def test_coordinator_failure_refresh_and_stream( async def test_coordinator_not_fetching_on_disconnected_appliance( config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -236,7 +234,6 @@ async def test_coordinator_update_failing( mock_method: str, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that although is not possible to get settings and status, the config entry is loaded. @@ -284,7 +281,6 @@ async def test_event_listener( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, entity_registry: er.EntityRegistry, @@ -350,7 +346,6 @@ async def tests_receive_setting_and_status_for_first_time_at_events( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -407,7 +402,6 @@ async def test_event_listener_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test that the configuration entry is reloaded when the event stream raises an API error.""" @@ -427,7 +421,6 @@ async def test_event_listener_error( assert not config_entry._background_tasks -@pytest.mark.usefixtures("setup_credentials") @pytest.mark.parametrize("platforms", [("sensor",)]) @pytest.mark.parametrize("appliance", ["Washer"], indirect=True) @pytest.mark.parametrize( @@ -525,7 +518,6 @@ async def test_devices_updated_on_refresh( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, ) -> None: @@ -567,7 +559,6 @@ async def test_paired_disconnected_devices_not_fetching( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -598,7 +589,6 @@ async def test_coordinator_disabling_updates_for_appliance( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, hass_client: ClientSessionGenerator, @@ -692,7 +682,6 @@ async def test_coordinator_disabling_updates_for_appliance_is_gone_after_entry_r hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, hass_client: ClientSessionGenerator, diff --git a/tests/components/home_connect/test_diagnostics.py b/tests/components/home_connect/test_diagnostics.py index ab6823411dc..23355bce582 100644 --- a/tests/components/home_connect/test_diagnostics.py +++ b/tests/components/home_connect/test_diagnostics.py @@ -21,7 +21,6 @@ async def test_async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, snapshot: SnapshotAssertion, ) -> None: @@ -37,7 +36,6 @@ async def test_async_get_device_diagnostics( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, snapshot: SnapshotAssertion, diff --git a/tests/components/home_connect/test_entity.py b/tests/components/home_connect/test_entity.py index e91a01a907a..fb78de89735 100644 --- a/tests/components/home_connect/test_entity.py +++ b/tests/components/home_connect/test_entity.py @@ -106,7 +106,6 @@ async def test_program_options_retrieval( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the options are correctly retrieved at the start and updated on program updates.""" @@ -257,7 +256,6 @@ async def test_no_options_retrieval_on_unknown_program( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that no options are retrieved when the program is unknown.""" @@ -335,7 +333,6 @@ async def test_program_options_retrieval_after_appliance_connection( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the options are correctly retrieved at the start and updated on program updates.""" @@ -455,7 +452,6 @@ async def test_option_entity_functionality_exception( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the option entity handles exceptions correctly.""" diff --git a/tests/components/home_connect/test_init.py b/tests/components/home_connect/test_init.py index 93a3caa6361..1671c69fdf6 100644 --- a/tests/components/home_connect/test_init.py +++ b/tests/components/home_connect/test_init.py @@ -43,7 +43,6 @@ async def test_entry_setup( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test setup and unload.""" @@ -64,7 +63,6 @@ async def test_token_refresh_success( integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, aioclient_mock: AiohttpClientMocker, - setup_credentials: None, client: MagicMock, ) -> None: """Test where token is expired and the refresh attempt succeeds.""" @@ -147,7 +145,6 @@ async def test_token_refresh_error( integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, aioclient_mock: AiohttpClientMocker, - setup_credentials: None, client: MagicMock, ) -> None: """Test where token is expired and the refresh attempt fails.""" @@ -181,7 +178,6 @@ async def test_client_error( expected_state: ConfigEntryState, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test client errors during setup integration.""" @@ -208,7 +204,6 @@ async def test_client_rate_limit_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test client errors during setup integration.""" @@ -241,7 +236,6 @@ async def test_required_program_or_at_least_an_option( device_registry: dr.DeviceRegistry, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: diff --git a/tests/components/home_connect/test_light.py b/tests/components/home_connect/test_light.py index 4894f223d4e..c10f3a4eaa2 100644 --- a/tests/components/home_connect/test_light.py +++ b/tests/components/home_connect/test_light.py @@ -59,7 +59,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -123,7 +122,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -181,7 +179,6 @@ async def test_light_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -353,7 +350,6 @@ async def test_light_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test light functionality.""" @@ -406,7 +402,6 @@ async def test_light_color_different_than_custom( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that light color attributes are not set if color is different than custom.""" @@ -574,7 +569,6 @@ async def test_light_exception_handling( hass: HomeAssistant, integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test light exception handling.""" diff --git a/tests/components/home_connect/test_number.py b/tests/components/home_connect/test_number.py index 4de7d662cc3..a35e018f040 100644 --- a/tests/components/home_connect/test_number.py +++ b/tests/components/home_connect/test_number.py @@ -64,7 +64,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -141,7 +140,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -199,7 +197,6 @@ async def test_number_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -300,7 +297,6 @@ async def test_number_entity_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test number entity functionality.""" @@ -388,7 +384,6 @@ async def test_fetch_constraints_after_rate_limit_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that, if a API rate limit error is raised, the constraints are fetched later.""" @@ -459,7 +454,6 @@ async def test_number_entity_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test number entity error.""" @@ -548,7 +542,6 @@ async def test_options_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test options functionality.""" diff --git a/tests/components/home_connect/test_select.py b/tests/components/home_connect/test_select.py index 4791b93332f..5702bd13ce5 100644 --- a/tests/components/home_connect/test_select.py +++ b/tests/components/home_connect/test_select.py @@ -68,7 +68,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -147,7 +146,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -215,7 +213,6 @@ async def test_select_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -266,7 +263,6 @@ async def test_select_entity_availability( async def test_filter_programs( config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, entity_registry: er.EntityRegistry, ) -> None: @@ -366,7 +362,6 @@ async def test_select_program_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test select functionality.""" @@ -440,7 +435,6 @@ async def test_select_exception_handling( hass: HomeAssistant, integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test exception handling.""" @@ -480,7 +474,6 @@ async def test_programs_updated_on_connect( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that devices reconnected. @@ -570,7 +563,6 @@ async def test_select_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test select functionality.""" @@ -633,7 +625,6 @@ async def test_fetch_allowed_values( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test fetch allowed values.""" @@ -690,7 +681,6 @@ async def test_fetch_allowed_values_after_rate_limit_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test fetch allowed values.""" @@ -765,7 +755,6 @@ async def test_default_values_after_fetch_allowed_values_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test fetch allowed values.""" @@ -818,7 +807,6 @@ async def test_select_entity_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test select entity error.""" @@ -936,7 +924,6 @@ async def test_options_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test options functionality.""" diff --git a/tests/components/home_connect/test_sensor.py b/tests/components/home_connect/test_sensor.py index a810de049ed..b25b2649f6f 100644 --- a/tests/components/home_connect/test_sensor.py +++ b/tests/components/home_connect/test_sensor.py @@ -95,7 +95,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -182,7 +181,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -240,7 +238,6 @@ async def test_sensor_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -366,7 +363,6 @@ async def test_program_sensors( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, ) -> None: """Test sequence for sensors that expose information about a program.""" entity_ids = ENTITY_ID_STATES.keys() @@ -440,7 +436,6 @@ async def test_program_sensor_edge_case( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test edge case for the program related entities.""" @@ -513,7 +508,6 @@ async def test_remaining_prog_time_edge_cases( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Run program sequence to test edge cases for the remaining_prog_time entity.""" @@ -594,7 +588,6 @@ async def test_sensors_states( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Tests for appliance sensors.""" @@ -654,7 +647,6 @@ async def test_event_sensors_states( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, entity_registry: er.EntityRegistry, caplog: pytest.LogCaptureFixture, @@ -743,7 +735,6 @@ async def test_sensor_unit_fetching( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the sensor entities are capable of fetching units.""" @@ -808,7 +799,6 @@ async def test_sensor_unit_fetching_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the sensor entities are capable of fetching units.""" @@ -861,7 +851,6 @@ async def test_sensor_unit_fetching_after_rate_limit_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test that the sensor entities are capable of fetching units.""" diff --git a/tests/components/home_connect/test_services.py b/tests/components/home_connect/test_services.py index 2915cbe4f69..2618cf951b7 100644 --- a/tests/components/home_connect/test_services.py +++ b/tests/components/home_connect/test_services.py @@ -181,7 +181,6 @@ async def test_key_value_services( device_registry: dr.DeviceRegistry, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -231,7 +230,6 @@ async def test_programs_and_options_actions_deprecation( device_registry: dr.DeviceRegistry, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, issue_registry: ir.IssueRegistry, @@ -302,7 +300,6 @@ async def test_set_program_and_options( device_registry: dr.DeviceRegistry, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, snapshot: SnapshotAssertion, @@ -346,7 +343,6 @@ async def test_set_program_and_options_exceptions( device_registry: dr.DeviceRegistry, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, appliance: HomeAppliance, ) -> None: @@ -375,7 +371,6 @@ async def test_services_exception_device_id( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, appliance: HomeAppliance, device_registry: dr.DeviceRegistry, @@ -400,7 +395,6 @@ async def test_services_appliance_not_found( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, ) -> None: @@ -449,7 +443,6 @@ async def test_services_exception( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, appliance: HomeAppliance, device_registry: dr.DeviceRegistry, diff --git a/tests/components/home_connect/test_switch.py b/tests/components/home_connect/test_switch.py index 6c4c64939ea..e0475c1778d 100644 --- a/tests/components/home_connect/test_switch.py +++ b/tests/components/home_connect/test_switch.py @@ -75,7 +75,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -154,7 +153,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -223,7 +221,6 @@ async def test_switch_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -311,7 +308,6 @@ async def test_switch_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, appliance: HomeAppliance, client: MagicMock, ) -> None: @@ -355,7 +351,6 @@ async def test_program_switch_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, appliance: HomeAppliance, client: MagicMock, ) -> None: @@ -462,7 +457,6 @@ async def test_switch_exception_handling( hass: HomeAssistant, integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test exception handling.""" @@ -537,7 +531,6 @@ async def test_ent_desc_switch_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, appliance: HomeAppliance, client: MagicMock, ) -> None: @@ -590,7 +583,6 @@ async def test_ent_desc_switch_exception_handling( hass: HomeAssistant, integration_setup: Callable[[MagicMock], Awaitable[bool]], config_entry: MockConfigEntry, - setup_credentials: None, appliance: HomeAppliance, client_with_exception: MagicMock, ) -> None: @@ -674,7 +666,6 @@ async def test_power_switch( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, appliance: HomeAppliance, client: MagicMock, ) -> None: @@ -719,7 +710,6 @@ async def test_power_switch_fetch_off_state_from_current_value( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test power switch functionality to fetch the off state from the current value.""" @@ -771,7 +761,6 @@ async def test_power_switch_service_validation_errors( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, exception_match: str, client: MagicMock, ) -> None: @@ -822,7 +811,6 @@ async def test_create_program_switch_deprecation_issue( service: str, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, ) -> None: @@ -904,7 +892,6 @@ async def test_program_switch_deprecation_issue_fix( service: str, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, hass_client: ClientSessionGenerator, @@ -1023,7 +1010,6 @@ async def test_options_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test options functionality.""" diff --git a/tests/components/home_connect/test_time.py b/tests/components/home_connect/test_time.py index c8275eb3d06..56cdefe7d57 100644 --- a/tests/components/home_connect/test_time.py +++ b/tests/components/home_connect/test_time.py @@ -52,7 +52,6 @@ async def test_paired_depaired_devices_flow( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -117,7 +116,6 @@ async def test_connected_devices( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, device_registry: dr.DeviceRegistry, entity_registry: er.EntityRegistry, @@ -176,7 +174,6 @@ async def test_time_entity_availability( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, appliance: HomeAppliance, ) -> None: @@ -242,7 +239,6 @@ async def test_time_entity_functionality( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, ) -> None: """Test time entity functionality.""" @@ -287,7 +283,6 @@ async def test_time_entity_error( hass: HomeAssistant, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client_with_exception: MagicMock, ) -> None: """Test time entity error.""" @@ -330,7 +325,6 @@ async def test_create_alarm_clock_deprecation_issue( appliance: HomeAppliance, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, ) -> None: @@ -411,7 +405,6 @@ async def test_alarm_clock_deprecation_issue_fix( appliance: HomeAppliance, config_entry: MockConfigEntry, integration_setup: Callable[[MagicMock], Awaitable[bool]], - setup_credentials: None, client: MagicMock, issue_registry: ir.IssueRegistry, hass_client: ClientSessionGenerator,