Improve reolink generic typing (#88786)
Co-authored-by: starkillerOG <starkiller.og@gmail.com>
This commit is contained in:
parent
83fa4c6c60
commit
84034959ba
11 changed files with 49 additions and 40 deletions
|
@ -24,7 +24,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||
|
||||
from . import ReolinkData
|
||||
from .const import DOMAIN
|
||||
from .entity import ReolinkCoordinatorEntity
|
||||
from .entity import ReolinkChannelCoordinatorEntity
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -113,7 +113,7 @@ async def async_setup_entry(
|
|||
async_add_entities(entities)
|
||||
|
||||
|
||||
class ReolinkBinarySensorEntity(ReolinkCoordinatorEntity, BinarySensorEntity):
|
||||
class ReolinkBinarySensorEntity(ReolinkChannelCoordinatorEntity, BinarySensorEntity):
|
||||
"""Base binary-sensor class for Reolink IP camera motion sensors."""
|
||||
|
||||
entity_description: ReolinkBinarySensorEntityDescription
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue