hygrometers and disabling of components
This commit is contained in:
1 parent
e37869616b
commit
4707b122cc
3 files changed
+102
-14
No files matched your search
@@ -2,14 +2,6 @@
|
||||
homeassistant.components.switch.verisure
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Support for Verisure Smartplugs
|
||||
|
||||
Configuration:
|
||||
|
||||
switch:
|
||||
platform: verisure
|
||||
|
||||
Variables:
|
||||
|
||||
"""
|
||||
import logging
|
||||
|
||||
@@ -31,6 +23,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
switches.extend([
|
||||
VerisureSmartplug(value)
|
||||
for value in verisure.get_smartplug_status().values()
|
||||
if verisure.SHOW_SMARTPLUGS
|
||||
])
|
||||
|
||||
add_devices(switches)
|
||||
|
||||
Reference in new issue
Block a user