Improve entity type hints [b] (#77012)

This commit is contained in:
epenet
2022-08-19 09:54:13 +02:00
committed by GitHub
parent dd109839b9
commit dedf063e43
21 changed files with 73 additions and 59 deletions

View File

@@ -162,7 +162,7 @@ class BayesianBinarySensor(BinarySensorEntity):
"state": self._process_state,
}
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""
Call when entity about to be added.
@@ -397,7 +397,7 @@ class BayesianBinarySensor(BinarySensorEntity):
ATTR_PROBABILITY_THRESHOLD: self._probability_threshold,
}
async def async_update(self):
async def async_update(self) -> None:
"""Get the latest data and update the states."""
if not self._callbacks:
self._recalculate_and_write_state()