Skip to content

Commit

Permalink
Only look for sensors not binary for batteries
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Jan 26, 2024
1 parent 9f8dda4 commit 112aea7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/battery_notes/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ async def async_setup(self) -> bool:
for entity in entity_registry.entities.values():
if not entity.device_id or entity.device_id != device_id:
continue
if not entity.domain or entity.domain not in {
BINARY_SENSOR_DOMAIN,
SENSOR_DOMAIN,
}:
if not entity.domain or entity.domain != SENSOR_DOMAIN:
continue
if not entity.platform or entity.platform == DOMAIN:
continue
Expand Down

0 comments on commit 112aea7

Please sign in to comment.