Improve lists in integrations [B] (#113069)
This commit is contained in:
parent
1853c2d73a
commit
23ffcaf187
10 changed files with 144 additions and 151 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue