Skip to content

Commit 4c8d9ed

Browse files
authored
Adjust type hints in sensor group (home-assistant#157373)
1 parent eef10c5 commit 4c8d9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/group/sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
async_create_issue,
5454
async_delete_issue,
5555
)
56-
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, StateType
56+
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
5757

5858
from .const import CONF_IGNORE_NON_NUMERIC, DOMAIN
5959
from .entity import GroupEntity
@@ -374,7 +374,7 @@ def calculate_state_attributes(self, valid_state_entities: list[str]) -> None:
374374
def async_update_group_state(self) -> None:
375375
"""Query all members and determine the sensor group state."""
376376
self.calculate_state_attributes(self._get_valid_entities())
377-
states: list[StateType] = []
377+
states: list[str] = []
378378
valid_units = self._valid_units
379379
valid_states: list[bool] = []
380380
sensor_values: list[tuple[str, float, State]] = []

0 commit comments

Comments
 (0)