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

+2 -1
View File
@@ -22,6 +22,7 @@ from homeassistant.helpers.entity import Entity
from . import SmileGateway
from .const import (
COOL_ICON,
COORDINATOR,
DEVICE_STATE,
DOMAIN,
FLAME_ICON,
@@ -168,7 +169,7 @@ CUSTOM_ICONS = {
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the Smile 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 = []
all_devices = api.get_all_devices()