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 9f53721 commit cdb487aCopy full SHA for cdb487a
1 file changed
custom_components/battery_notes/discovery.py
@@ -12,7 +12,7 @@
12
from homeassistant.helpers import discovery_flow
13
from homeassistant.loader import Integration, async_get_integration
14
15
-from .common import get_device_model_id
+from .common import get_device_model_id, is_composite_device_id
16
from .const import (
17
CONF_BATTERY_QUANTITY,
18
CONF_BATTERY_TYPE,
@@ -101,6 +101,9 @@ async def start_discovery(self) -> None:
101
if not self.should_process_device(device_entry):
102
continue
103
104
+ if is_composite_device_id(self.hass, device_entry.id):
105
+ continue
106
+
107
model_info = await autodiscover_model(device_entry)
108
if (
109
not model_info
0 commit comments