Skip to content

Commit 112aea7

Browse files
Only look for sensors not binary for batteries
1 parent 9f8dda4 commit 112aea7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

custom_components/battery_notes/device.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ async def async_setup(self) -> bool:
8585
for entity in entity_registry.entities.values():
8686
if not entity.device_id or entity.device_id != device_id:
8787
continue
88-
if not entity.domain or entity.domain not in {
89-
BINARY_SENSOR_DOMAIN,
90-
SENSOR_DOMAIN,
91-
}:
88+
if not entity.domain or entity.domain != SENSOR_DOMAIN:
9289
continue
9390
if not entity.platform or entity.platform == DOMAIN:
9491
continue

0 commit comments

Comments
 (0)