Add zwave_js discovery schema for Vision Security ZL7432 (#49510)

* Add zwave_js discovery schema for Vision Security ZL7432

* add tests

* fix test

* add correct fixture

* Make discussed changes

* fix tests

* move event handler

* fix logic to get entity ID

* add test

* make discovery test more explicit

* remove domain from event data

* always provide entity_id key to make automations easier and translate value if possible

* formatting

* comment

* dont overwrite value
This commit is contained in:
Raman Gupta 2021-04-28 04:22:54 -04:00 committed by GitHub
parent d7247c2ace
commit 1cb907c2e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 618 additions and 6 deletions

View file

@ -21,6 +21,7 @@ LOGGER = logging.getLogger(__package__)
# constants for events
ZWAVE_JS_VALUE_NOTIFICATION_EVENT = f"{DOMAIN}_value_notification"
ZWAVE_JS_NOTIFICATION_EVENT = f"{DOMAIN}_notification"
ZWAVE_JS_VALUE_UPDATED_EVENT = f"{DOMAIN}_value_updated"
ATTR_NODE_ID = "node_id"
ATTR_HOME_ID = "home_id"
ATTR_ENDPOINT = "endpoint"