aboutsummaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-08-12 19:04:39 +0200
committerlonkaars <loek@pipeframe.xyz>2021-08-12 19:04:39 +0200
commita1821bb663f834295d94acaf3a8c531fb30848a9 (patch)
tree06ec24254533d20e466946d598621a8dcfe05b17 /__init__.py
parent2319806262c0880c839f923c12cb995e26dbc2c3 (diff)
loading now!
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py
index 40b4d90..eb66857 100644
--- a/__init__.py
+++ b/__init__.py
@@ -1,5 +1,11 @@
+from homeassistant.core import HomeAssistant
+
DOMAIN = "beken"
+PLATFORMS = ["light"]
+
+def setup(hass: HomeAssistant, config):
+ hass.data[DOMAIN] = {}
+ return True
-def setup(hass, config):
- hass.states.set("beken.loaded", "yes")
+def setup_entry(hass, entry):
return True