diff --git a/homeassistant/components/sofar/__init__.py b/homeassistant/components/sofar/__init__.py index df50630c259d..12f7679e2695 100644 --- a/homeassistant/components/sofar/__init__.py +++ b/homeassistant/components/sofar/__init__.py @@ -125,7 +125,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup_entry(hass: HomeAssistant, entry: SofarConfigEntry) -> bool: - """Set up Sofar Inverter Modbus from a config entry.""" + """Set up Sofar from a config entry.""" serial = entry.unique_id assert serial is not None _async_remove_stale_waiting_time(hass, serial) diff --git a/homeassistant/components/sofar/binary_sensor.py b/homeassistant/components/sofar/binary_sensor.py index e0f36e2ef7fc..8c7d9ad1883b 100644 --- a/homeassistant/components/sofar/binary_sensor.py +++ b/homeassistant/components/sofar/binary_sensor.py @@ -82,7 +82,7 @@ async def async_setup_entry( entry: SofarConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Sofar Inverter Modbus binary sensor platform.""" + """Set up the Sofar binary sensor platform.""" runtime_data = entry.runtime_data served = runtime_data.served_components async_add_entities( diff --git a/homeassistant/components/sofar/button.py b/homeassistant/components/sofar/button.py index 29bbe91a4bde..2a8b258e204c 100644 --- a/homeassistant/components/sofar/button.py +++ b/homeassistant/components/sofar/button.py @@ -53,7 +53,7 @@ async def async_setup_entry( entry: SofarConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Sofar Inverter Modbus button platform.""" + """Set up the Sofar button platform.""" runtime_data = entry.runtime_data inverter_type = runtime_data.readings.device.inverter_type async_add_entities( diff --git a/homeassistant/components/sofar/select.py b/homeassistant/components/sofar/select.py index b9e6b201e0ec..88c27bc48d22 100644 --- a/homeassistant/components/sofar/select.py +++ b/homeassistant/components/sofar/select.py @@ -58,7 +58,7 @@ async def async_setup_entry( entry: SofarConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Sofar Inverter Modbus select platform.""" + """Set up the Sofar select platform.""" runtime_data = entry.runtime_data served = runtime_data.served_components async_add_entities( diff --git a/homeassistant/components/sofar/sensor.py b/homeassistant/components/sofar/sensor.py index bd3024519426..f10dadfd4a50 100644 --- a/homeassistant/components/sofar/sensor.py +++ b/homeassistant/components/sofar/sensor.py @@ -43,7 +43,7 @@ async def async_setup_entry( entry: SofarConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Sofar Inverter Modbus sensor platform.""" + """Set up the Sofar sensor platform.""" runtime_data = entry.runtime_data served = runtime_data.served_components diff --git a/homeassistant/components/sofar/switch.py b/homeassistant/components/sofar/switch.py index 86c595247996..a33aa6eefe4b 100644 --- a/homeassistant/components/sofar/switch.py +++ b/homeassistant/components/sofar/switch.py @@ -42,7 +42,7 @@ async def async_setup_entry( entry: SofarConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback, ) -> None: - """Set up the Sofar Inverter Modbus switch platform.""" + """Set up the Sofar switch platform.""" runtime_data = entry.runtime_data served = runtime_data.served_components async_add_entities( diff --git a/tests/components/sofar/__init__.py b/tests/components/sofar/__init__.py index 6f2441cdc6dd..c79663144f74 100644 --- a/tests/components/sofar/__init__.py +++ b/tests/components/sofar/__init__.py @@ -1,4 +1,4 @@ -"""Tests for the Sofar Inverter Modbus integration.""" +"""Tests for the Sofar integration.""" from modbus_connection.mock import MockModbusUnit diff --git a/tests/components/sofar/conftest.py b/tests/components/sofar/conftest.py index e4cde6ef1d4c..de0a7b5834f0 100644 --- a/tests/components/sofar/conftest.py +++ b/tests/components/sofar/conftest.py @@ -1,4 +1,4 @@ -"""Common fixtures for the Sofar Inverter Modbus tests.""" +"""Fixtures for the Sofar integration tests.""" from collections.abc import Generator from unittest.mock import AsyncMock, patch @@ -35,7 +35,7 @@ def mock_connection() -> MockModbusConnection: @pytest.fixture def mock_config_entry() -> MockConfigEntry: - """Mock a Sofar Inverter Modbus config entry.""" + """Mock a Sofar config entry.""" return MockConfigEntry( domain=DOMAIN, unique_id=MOCK_SERIAL, @@ -50,7 +50,7 @@ async def init_integration( mock_config_entry: MockConfigEntry, mock_connection: MockModbusConnection, ) -> MockConfigEntry: - """Set up the Sofar Inverter Modbus integration for testing.""" + """Set up the Sofar integration for testing.""" mock_config_entry.add_to_hass(hass) with patch( "homeassistant.components.sofar.async_get_unit", diff --git a/tests/components/sofar/test_binary_sensor.py b/tests/components/sofar/test_binary_sensor.py index 463f8db1da4b..ea03662699c5 100644 --- a/tests/components/sofar/test_binary_sensor.py +++ b/tests/components/sofar/test_binary_sensor.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus binary sensor platform.""" +"""Tests for the Sofar binary sensor platform.""" from unittest.mock import patch diff --git a/tests/components/sofar/test_button.py b/tests/components/sofar/test_button.py index 71f4f1b739af..3a3a7bbf0c11 100644 --- a/tests/components/sofar/test_button.py +++ b/tests/components/sofar/test_button.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus button platform.""" +"""Tests for the Sofar button platform.""" from collections.abc import Callable, Sequence from unittest.mock import patch diff --git a/tests/components/sofar/test_config_flow.py b/tests/components/sofar/test_config_flow.py index 324c8a226e20..5652543aee52 100644 --- a/tests/components/sofar/test_config_flow.py +++ b/tests/components/sofar/test_config_flow.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus config flow.""" +"""Tests for the Sofar config flow.""" from collections.abc import AsyncIterator, Callable from contextlib import asynccontextmanager diff --git a/tests/components/sofar/test_diagnostics.py b/tests/components/sofar/test_diagnostics.py index 92ed3a9b7d9a..82d885e0f8fe 100644 --- a/tests/components/sofar/test_diagnostics.py +++ b/tests/components/sofar/test_diagnostics.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus diagnostics.""" +"""Tests for the Sofar diagnostics.""" from unittest.mock import patch diff --git a/tests/components/sofar/test_init.py b/tests/components/sofar/test_init.py index c6b1efe4aea0..933b7da5c102 100644 --- a/tests/components/sofar/test_init.py +++ b/tests/components/sofar/test_init.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus integration setup and unload.""" +"""Tests for the Sofar integration setup and unload.""" from collections.abc import Callable from datetime import timedelta diff --git a/tests/components/sofar/test_select.py b/tests/components/sofar/test_select.py index e86c5ff85522..bf15621448a6 100644 --- a/tests/components/sofar/test_select.py +++ b/tests/components/sofar/test_select.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus select platform.""" +"""Tests for the Sofar select platform.""" from unittest.mock import patch diff --git a/tests/components/sofar/test_sensor.py b/tests/components/sofar/test_sensor.py index 0da9e4a64ac1..910c01bcdc8e 100644 --- a/tests/components/sofar/test_sensor.py +++ b/tests/components/sofar/test_sensor.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus sensor platform.""" +"""Tests for the Sofar sensor platform.""" from collections.abc import Callable from datetime import timedelta diff --git a/tests/components/sofar/test_services.py b/tests/components/sofar/test_services.py index ac5a1f6c3590..b7d9b85216aa 100644 --- a/tests/components/sofar/test_services.py +++ b/tests/components/sofar/test_services.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus services.""" +"""Tests for the Sofar integration services.""" from unittest.mock import patch diff --git a/tests/components/sofar/test_switch.py b/tests/components/sofar/test_switch.py index 71df5c3dd3d9..8f94ca731228 100644 --- a/tests/components/sofar/test_switch.py +++ b/tests/components/sofar/test_switch.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus switch platform.""" +"""Tests for the Sofar switch platform.""" from unittest.mock import patch diff --git a/tests/components/sofar/test_tuning.py b/tests/components/sofar/test_tuning.py index 8424ebfd7bec..6e536e21b3e9 100644 --- a/tests/components/sofar/test_tuning.py +++ b/tests/components/sofar/test_tuning.py @@ -1,4 +1,4 @@ -"""Test the Sofar Inverter Modbus link tuning.""" +"""Tests for the Sofar link tuning.""" from datetime import timedelta