Fix implicit-return in python_script (#123004)
parent
bc91bd3293
commit
c2a23bce50
|
@ -108,13 +108,13 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
return True
|
||||
|
||||
|
||||
def discover_scripts(hass):
|
||||
def discover_scripts(hass: HomeAssistant) -> None:
|
||||
"""Discover python scripts in folder."""
|
||||
path = hass.config.path(FOLDER)
|
||||
|
||||
if not os.path.isdir(path):
|
||||
_LOGGER.warning("Folder %s not found in configuration folder", FOLDER)
|
||||
return False
|
||||
return
|
||||
|
||||
def python_script_service_handler(call: ServiceCall) -> ServiceResponse:
|
||||
"""Handle python script service calls."""
|
||||
|
|
Loading…
Reference in New Issue