1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-13 17:47:08 +00:00
Fabian Affolter 127c55e0c1
Update file header ()
* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
2019-02-13 21:21:14 +01:00

31 lines
769 B
Python

"""Support for Fibaro scenes."""
import logging
from homeassistant.components.scene import (
Scene)
from homeassistant.components.fibaro import (
FIBARO_DEVICES, FibaroDevice)
DEPENDENCIES = ['fibaro']
_LOGGER = logging.getLogger(__name__)
async def async_setup_platform(hass, config, async_add_entities,
discovery_info=None):
"""Perform the setup for Fibaro scenes."""
if discovery_info is None:
return
async_add_entities(
[FibaroScene(scene)
for scene in hass.data[FIBARO_DEVICES]['scene']], True)
class FibaroScene(FibaroDevice, Scene):
"""Representation of a Fibaro scene entity."""
def activate(self):
"""Activate the scene."""
self.fibaro_device.start()