From 4c8d9ed401387191ca192a530f3d4e50503f0e7e Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 27 Nov 2025 08:34:16 +0100 Subject: [PATCH] Adjust type hints in sensor group (#157373) --- homeassistant/components/group/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/group/sensor.py b/homeassistant/components/group/sensor.py index cad794fd6b9..b67e10dd960 100644 --- a/homeassistant/components/group/sensor.py +++ b/homeassistant/components/group/sensor.py @@ -53,7 +53,7 @@ from homeassistant.helpers.issue_registry import ( async_create_issue, async_delete_issue, ) -from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, StateType +from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType from .const import CONF_IGNORE_NON_NUMERIC, DOMAIN from .entity import GroupEntity @@ -374,7 +374,7 @@ class SensorGroup(GroupEntity, SensorEntity): def async_update_group_state(self) -> None: """Query all members and determine the sensor group state.""" self.calculate_state_attributes(self._get_valid_entities()) - states: list[StateType] = [] + states: list[str] = [] valid_units = self._valid_units valid_states: list[bool] = [] sensor_values: list[tuple[str, float, State]] = []