From 144ff1b707720300e615780216b62a6f9aacf670 Mon Sep 17 00:00:00 2001 From: Xavier Moreno Date: Mon, 3 May 2021 18:41:33 +0200 Subject: [PATCH] style(black): fix format from #296 --- RELEASE_NOTES.md | 3 ++- apps/controllerx/cx_devices/ikea.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 38c9f063..dba4abfb 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -26,4 +26,5 @@ PRERELEASE_NOTE ## :video_game: New devices -- [929003017102](https://xaviml.github.io/controllerx/controllers/929003017102) - add device with deCONZ support [ #276 ] +- [929003017102](https://xaviml.github.io/controllerx/controllers/929003017102) - add device with Z2M and deCONZ support [ #276 ] +- [E1812](https://xaviml.github.io/controllerx/controllers/E1812) - add deCONZ support [ #296 ] @schneekluth diff --git a/apps/controllerx/cx_devices/ikea.py b/apps/controllerx/cx_devices/ikea.py index ee8d7855..0889e84d 100644 --- a/apps/controllerx/cx_devices/ikea.py +++ b/apps/controllerx/cx_devices/ikea.py @@ -501,7 +501,8 @@ def get_deconz_actions_mapping(self) -> DefaultActionsMapping: 1002: Light.TOGGLE, 1001: Light.HOLD_BRIGHTNESS_TOGGLE, 1003: Light.RELEASE, - } + } + class E1812SwitchController(SwitchController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: @@ -510,6 +511,7 @@ def get_z2m_actions_mapping(self) -> DefaultActionsMapping: def get_deconz_actions_mapping(self) -> DefaultActionsMapping: return {1002: Switch.TOGGLE} + class W2049LightController(LightController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return {