Просмотр исходного кода

diagnostics: import API_PROTOCOL_VERSIONS from the correct const

This is in our local const, not the homeassistant one.
Jason Rumney 3 лет назад
Родитель
Сommit
3fc592b68f
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      custom_components/tuya_local/diagnostics.py

+ 6 - 2
custom_components/tuya_local/diagnostics.py

@@ -5,12 +5,16 @@ from typing import Any
 
 from homeassistant.components.diagnostics import REDACTED
 from homeassistant.config_entries import ConfigEntry
-from homeassistant.const import API_PROTOCOL_VERSIONS
 from homeassistant.core import HomeAssistant, callback
 from homeassistant.helpers import device_registry as dr, entity_registry as er
 from homeassistant.helpers.device_registry import DeviceEntry
 
-from .const import CONF_PROTOCOL_VERSION, CONF_TYPE, DOMAIN
+from .const import (
+    API_PROTOCOL_VERSIONS,
+    CONF_PROTOCOL_VERSION,
+    CONF_TYPE,
+    DOMAIN,
+)
 from .device import TuyaLocalDevice