* Add matter base (#79372) Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com> * Add matter server add-on flow (#82698) * Add matter server add-on flow * Fix stale error argument * Clean docstrings * Use localhost as default address * Add matter websocket api foundation (#82848) * Add matter config entry add-on management (#82865) * Use matter refactored server/client library (#83003) Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Bump python-matter-server to 1.0.6 (#83059) * Extend matter websocket api (#82948) * Extend matter websocket api * Finish docstring * Fix pin type * Adjust api after new client * Adjust api to frontend for now Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
25 lines
593 B
Python
25 lines
593 B
Python
"""All mappings of Matter devices to Home Assistant platforms."""
|
|
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
from .light import DEVICE_ENTITY as LIGHT_DEVICE_ENTITY
|
|
|
|
if TYPE_CHECKING:
|
|
from matter_server.common.models.device_types import DeviceType
|
|
|
|
from .entity import MatterEntityDescriptionBaseClass
|
|
|
|
|
|
DEVICE_PLATFORM: dict[
|
|
Platform,
|
|
dict[
|
|
type[DeviceType],
|
|
MatterEntityDescriptionBaseClass | list[MatterEntityDescriptionBaseClass],
|
|
],
|
|
] = {
|
|
Platform.LIGHT: LIGHT_DEVICE_ENTITY,
|
|
}
|