mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 23:07:09 +00:00
Add dimmer as switch
This commit is contained in:
parent
18747f8ae1
commit
49f4d92c62
@ -35,7 +35,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
controller = veraApi.VeraController(base_url)
|
controller = veraApi.VeraController(base_url)
|
||||||
devices = []
|
devices = []
|
||||||
try:
|
try:
|
||||||
devices = controller.get_devices(['Switch', 'On/Off Switch'])
|
devices = controller.get_devices(['Switch', 'On/Off Switch', 'Dimmable Switch'])
|
||||||
except RequestException:
|
except RequestException:
|
||||||
# There was a network related error connecting to the vera controller
|
# There was a network related error connecting to the vera controller
|
||||||
_LOGGER.exception("Error communicating with Vera API")
|
_LOGGER.exception("Error communicating with Vera API")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user