mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix implicit-return in python_script (#123004)
This commit is contained in:
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…
x
Reference in New Issue
Block a user