Fix implicit-return in python_script (#123004)

pull/122953/head
epenet 2024-08-01 12:20:05 +02:00 committed by GitHub
parent bc91bd3293
commit c2a23bce50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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."""