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