mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 21:02:20 +01:00
[ruff] Enable RET and fix all violations (#9929)
This commit is contained in:
@@ -1868,7 +1868,7 @@ def validate_registry_entry(name, registry):
|
||||
|
||||
def none(value):
|
||||
if value in ("none", "None"):
|
||||
return None
|
||||
return
|
||||
raise Invalid("Must be none")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user