Fix implicit-return in plant (#122903)

pull/122905/head^2
epenet 2024-07-31 11:39:51 +02:00 committed by GitHub
parent 68f06e63e2
commit 8b4f607806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ class Plant(Entity):
min_value = self._config[params["min"]]
if value < min_value:
return f"{sensor_name} low"
return None
def _check_max(self, sensor_name, value, params):
"""If configured, check the value against the defined maximum value."""