Add alias to DOMAIN import (part 4) (#125563)

* Add alias to DOMAIN import (part 4)

* Simplify

* More integration

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Revert "Apply suggestions from code review"

This reverts commit 07471d3629.

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
epenet 2024-09-09 21:32:33 +02:00 committed by GitHub
parent ded34561b1
commit e750f8f457
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 82 additions and 47 deletions

View file

@ -7,7 +7,7 @@ import logging
from pypoint import EVENTS
from homeassistant.components.binary_sensor import (
DOMAIN,
DOMAIN as BINARY_SENSOR_DOMAIN,
BinarySensorDeviceClass,
BinarySensorEntity,
)
@ -60,7 +60,9 @@ async def async_setup_entry(
)
async_dispatcher_connect(
hass, POINT_DISCOVERY_NEW.format(DOMAIN, POINT_DOMAIN), async_discover_sensor
hass,
POINT_DISCOVERY_NEW.format(BINARY_SENSOR_DOMAIN, POINT_DOMAIN),
async_discover_sensor,
)