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:
parent
ded34561b1
commit
e750f8f457
20 changed files with 82 additions and 47 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue