Use the same ZHA database path during startup and when loading device triggers (#128130)

Use the same zigpy database path source as in the radio manager
pull/128654/head
puddly 2024-10-17 07:17:20 -04:00 committed by Franck Nijhof
parent 14127b910f
commit 0a26e68d0c
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -1198,7 +1198,7 @@ def create_zha_config(hass: HomeAssistant, ha_zha_data: HAZHAData) -> ZHAData:
# deep copy the yaml config to avoid modifying the original and to safely
# pass it to the ZHA library
app_config = copy.deepcopy(ha_zha_data.yaml_config.get(CONF_ZIGPY, {}))
database = app_config.get(
database = ha_zha_data.yaml_config.get(
CONF_DATABASE,
hass.config.path(DEFAULT_DATABASE_NAME),
)