Add Plugwise scan_interval config option (#37229)

Co-authored-by: Tom Scholten <tom@sue.nl>
Co-authored-by: Tom Scholten <git@scholten.nu>
This commit is contained in:
authored and GitHub committed 2020-09-06 15:26:14 -05:00
1 parent e52a303e93
commit 61e8ab1300
9 files changed
+255 -31

No files matched your search

@@ -6,7 +6,14 @@ from homeassistant.components.binary_sensor import BinarySensorEntity
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import callback
from .const import DOMAIN, FLAME_ICON, FLOW_OFF_ICON, FLOW_ON_ICON, IDLE_ICON
from .const import (
COORDINATOR,
DOMAIN,
FLAME_ICON,
FLOW_OFF_ICON,
FLOW_ON_ICON,
IDLE_ICON,
)
from .sensor import SmileSensor
BINARY_SENSOR_MAP = {
@@ -20,7 +27,7 @@ _LOGGER = logging.getLogger(__name__)
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the Smile binary_sensors from a config entry."""
api = hass.data[DOMAIN][config_entry.entry_id]["api"]
coordinator = hass.data[DOMAIN][config_entry.entry_id]["coordinator"]
coordinator = hass.data[DOMAIN][config_entry.entry_id][COORDINATOR]
entities = []