There was an error while loading. Please reload this page.
1 parent d26a546 commit 3b7685dCopy full SHA for 3b7685d
1 file changed
custom_components/smart_sniffer/config_flow.py
@@ -8,7 +8,10 @@
8
import aiohttp
9
import voluptuous as vol
10
11
-from homeassistant.components.zeroconf import ZeroconfServiceInfo
+try:
12
+ from homeassistant.helpers.service_info.zeroconf import ZeroconfServiceInfo
13
+except ImportError: # HA < 2025.x compat
14
+ from homeassistant.components.zeroconf import ZeroconfServiceInfo
15
from homeassistant.config_entries import (
16
ConfigEntry,
17
ConfigFlow,
0 commit comments