Improve entity type hints [r] (#77874)

This commit is contained in:
epenet 2022-09-06 09:47:35 +02:00 committed by GitHub
parent 7198273a42
commit 6f564e4f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 97 additions and 83 deletions

View file

@ -58,7 +58,7 @@ class RainCloudBinarySensor(RainCloudEntity, BinarySensorEntity):
"""Return true if the binary sensor is on."""
return self._state
def update(self):
def update(self) -> None:
"""Get the latest data and updates the state."""
_LOGGER.debug("Updating RainCloud sensor: %s", self._name)
self._state = getattr(self.data, self._sensor_type)