From 2ec1216ed11431d609eaca5842d7348df0c21814 Mon Sep 17 00:00:00 2001 From: Xavier Moreno Date: Sun, 10 Jan 2021 00:46:09 +0100 Subject: [PATCH] docs(device): remove notes about `_click` actions for Z2M --- .pre-commit-config.yaml | 64 +++++++++---------- docs/_data/controllers/WXKG11LM-remote.yml | 4 -- .../controllers/WXKG11LM-sensor_switch.yml | 4 -- docs/_data/controllers/WXKG12LM.yml | 4 -- docs/others/extract-controller-id.md | 2 +- 5 files changed, 33 insertions(+), 45 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5fa3caa..75dbdcfc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,34 +1,34 @@ fail_fast: true repos: -- repo: local - hooks: - - id: isort - name: isort - entry: pipenv run isort - language: python - types: [python] - args: [] - require_serial: false - - id: black - name: black - entry: pipenv run black - language: python - types: [python] - - id: flake8 - name: flake8 - entry: pipenv run flake8 - language: python - types: [python] - - id: mypy - name: mypy - entry: pipenv run mypy apps/controllerx/ tests/ - language: python - types: [python] - pass_filenames: false - - id: pytest - name: pytest - entry: pipenv run pytest - language: python - types: [python] - pass_filenames: false - always_run: true + - repo: local + hooks: + - id: isort + name: isort + entry: pipenv run isort + language: python + types: [python] + args: [] + require_serial: false + - id: black + name: black + entry: pipenv run black + language: python + types: [python] + - id: flake8 + name: flake8 + entry: pipenv run flake8 + language: python + types: [python] + - id: mypy + name: mypy + entry: pipenv run mypy apps/controllerx/ tests/ + language: python + types: [python] + pass_filenames: false + - id: pytest + name: pytest + entry: pipenv run pytest + language: python + types: [python] + pass_filenames: false + always_run: true diff --git a/docs/_data/controllers/WXKG11LM-remote.yml b/docs/_data/controllers/WXKG11LM-remote.yml index 8baec790..bbb39e02 100644 --- a/docs/_data/controllers/WXKG11LM-remote.yml +++ b/docs/_data/controllers/WXKG11LM-remote.yml @@ -8,10 +8,6 @@ device_support: - "1 click → Toggle" - "2 clicks → Full brightness" - "Hold the button → Brightness up/down with direction changes" -note: >- - For z2m integration, this controller has 2 sensors that need to be added to the configuration. - One ends with `_action` and the other one with `_click`. - See here. integrations: - name: Zigbee2MQTT codename: z2m diff --git a/docs/_data/controllers/WXKG11LM-sensor_switch.yml b/docs/_data/controllers/WXKG11LM-sensor_switch.yml index 5717d75e..fa0513fe 100644 --- a/docs/_data/controllers/WXKG11LM-sensor_switch.yml +++ b/docs/_data/controllers/WXKG11LM-sensor_switch.yml @@ -9,10 +9,6 @@ device_support: - "2 clicks → Full brightness" - "3 clicks → Minimum brightness (just ZHA integration)" - "4 clicks → 50% brightness (just ZHA integration)" -note: >- - For z2m integration, this controller has 2 sensors that need to be added to the configuration. - One ends with `_action` and the other one with `_click`. - See here. integrations: - name: ZHA codename: zha diff --git a/docs/_data/controllers/WXKG12LM.yml b/docs/_data/controllers/WXKG12LM.yml index 6206becc..d06356b4 100644 --- a/docs/_data/controllers/WXKG12LM.yml +++ b/docs/_data/controllers/WXKG12LM.yml @@ -9,10 +9,6 @@ device_support: - "2 clicks → Full brightness" - "Shake the controller → Minimum brightness" - "Hold the button → Brightness up/down with direction changes" -note: >- - For z2m integration, this controller has 2 sensors that need to be added to the configuration. - One ends with `_action` and the other one with `_click`. - See here. integrations: - name: Zigbee2MQTT codename: z2m diff --git a/docs/others/extract-controller-id.md b/docs/others/extract-controller-id.md index 3705f481..96450e0f 100644 --- a/docs/others/extract-controller-id.md +++ b/docs/others/extract-controller-id.md @@ -7,7 +7,7 @@ The purpose of this page is to indicate what value the `controller` attribute sh #### Zigbee2MQTT -The name you need to add to the `controller` parameter can be found in `Configuration > Integrations > MQTT` and then select the controller. Then you will see the action sensor that by default finishes in `_action` or `_click`. The parameter you need is the entity id of the sensor. +The name you need to add to the `controller` parameter can be found in `Configuration > Integrations > MQTT` and then select the controller. Then you will see the action sensor that by default finishes in `_action`. The parameter you need is the entity id of the sensor. #### deCONZ