We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e8b51 commit f196864Copy full SHA for f196864
custom_components/python_script/__init__.py
@@ -45,7 +45,7 @@ def md5(data: str) -> str:
45
46
47
async def async_setup(hass: HomeAssistant, hass_config: ConfigType):
48
- config: dict = hass_config[DOMAIN]
+ config: dict = hass_config.get(DOMAIN) or {}
49
if CONF_REQUIREMENTS in config:
50
hass.async_create_task(
51
async_process_requirements(hass, DOMAIN, config[CONF_REQUIREMENTS])
0 commit comments