mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix implicit-return in plant (#122903)
This commit is contained in:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user