mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Fix implicit-return in plant (#122903)
This commit is contained in:
parent
68f06e63e2
commit
8b4f607806
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user