Add support for zwave_js device actions (#53038)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
552485bb05
commit
e690d4b006
11 changed files with 889 additions and 60 deletions
|
@ -25,7 +25,12 @@ from homeassistant.helpers import config_validation as cv, entity_platform
|
|||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DATA_CLIENT, DOMAIN
|
||||
from .const import (
|
||||
DATA_CLIENT,
|
||||
DOMAIN,
|
||||
SERVICE_CLEAR_LOCK_USERCODE,
|
||||
SERVICE_SET_LOCK_USERCODE,
|
||||
)
|
||||
from .discovery import ZwaveDiscoveryInfo
|
||||
from .entity import ZWaveBaseEntity
|
||||
|
||||
|
@ -42,9 +47,6 @@ STATE_TO_ZWAVE_MAP: dict[int, dict[str, int | bool]] = {
|
|||
},
|
||||
}
|
||||
|
||||
SERVICE_SET_LOCK_USERCODE = "set_lock_usercode"
|
||||
SERVICE_CLEAR_LOCK_USERCODE = "clear_lock_usercode"
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue