Add ZHA roller shadows as cover instead of switch (#36059)

* Implement cover for "Shade" ZHA device type.
* Update ZHA cover tests.
* Add stop command
* Coverage.
This commit is contained in:
Alexei Chetroi 2020-05-23 22:37:49 -04:00 committed by GitHub
parent eaa16fa818
commit f4c5b9f8f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 335 additions and 12 deletions

View file

@ -28,7 +28,7 @@ from .core.const import (
SIGNAL_REMOVE_GROUP,
)
from .core.helpers import LogMixin
from .core.typing import CALLABLE_T, ChannelsType, ChannelType, ZhaDeviceType
from .core.typing import CALLABLE_T, ChannelType, ZhaDeviceType
_LOGGER = logging.getLogger(__name__)
@ -150,7 +150,7 @@ class ZhaEntity(BaseZhaEntity, RestoreEntity):
self,
unique_id: str,
zha_device: ZhaDeviceType,
channels: ChannelsType,
channels: List[ChannelType],
**kwargs,
):
"""Init ZHA entity."""