Remove file sync read warning

This commit is contained in:
sususweet
2025-09-17 23:15:15 +08:00
parent 2bfc2b9fbe
commit 4d298054f6
11 changed files with 37 additions and 238 deletions

View File

@@ -26,7 +26,7 @@ async def async_setup_entry(
for device_id, info in device_list.items():
device_type = info.get("type")
sn8 = info.get("sn8")
config = load_device_config(hass, device_type, sn8) or {}
config = await load_device_config(hass, device_type, sn8) or {}
entities_cfg = (config.get("entities") or {}).get(Platform.SENSOR, {})
manufacturer = config.get("manufacturer")
rationale = config.get("rationale")