Improve lists in integrations [B] (#113069)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 18:59:57 +01:00 committed by GitHub
parent 1853c2d73a
commit 23ffcaf187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 144 additions and 151 deletions

View file

@ -313,9 +313,9 @@ class BayesianBinarySensor(BinarySensorEntity):
self.hass, observations, text=f"{self._attr_name}/{entity}"
)
all_template_observations: list[Observation] = []
for observations in self.observations_by_template.values():
all_template_observations.append(observations[0])
all_template_observations: list[Observation] = [
observations[0] for observations in self.observations_by_template.values()
]
if len(all_template_observations) == 2:
raise_mirrored_entries(
self.hass,