mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
parent
4e62da9c8e
commit
42b86d4b4e
@ -34,7 +34,7 @@ from .const import (
|
||||
DOMAIN,
|
||||
)
|
||||
|
||||
SCAN_INTERVAL = timedelta(seconds=5)
|
||||
SCAN_INTERVAL = timedelta(seconds=10)
|
||||
WLED_COMPONENTS = (LIGHT_DOMAIN, SENSOR_DOMAIN, SWITCH_DOMAIN)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@ -50,7 +50,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
# Create WLED instance for this entry
|
||||
session = async_get_clientsession(hass)
|
||||
wled = WLED(entry.data[CONF_HOST], loop=hass.loop, session=session)
|
||||
wled = WLED(entry.data[CONF_HOST], session=session)
|
||||
|
||||
# Ensure we can connect and talk to it
|
||||
try:
|
||||
|
@ -75,7 +75,7 @@ class WLEDFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
|
||||
errors = {}
|
||||
session = async_get_clientsession(self.hass)
|
||||
wled = WLED(user_input[CONF_HOST], loop=self.hass.loop, session=session)
|
||||
wled = WLED(user_input[CONF_HOST], session=session)
|
||||
|
||||
try:
|
||||
device = await wled.update()
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "WLED",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/wled",
|
||||
"requirements": ["wled==0.1.0"],
|
||||
"requirements": ["wled==0.2.1"],
|
||||
"dependencies": [],
|
||||
"zeroconf": ["_wled._tcp.local."],
|
||||
"codeowners": ["@frenck"]
|
||||
|
@ -2049,7 +2049,7 @@ wirelesstagpy==0.4.0
|
||||
withings-api==2.1.3
|
||||
|
||||
# homeassistant.components.wled
|
||||
wled==0.1.0
|
||||
wled==0.2.1
|
||||
|
||||
# homeassistant.components.wunderlist
|
||||
wunderpy2==0.1.6
|
||||
|
@ -647,7 +647,7 @@ watchdog==0.8.3
|
||||
withings-api==2.1.3
|
||||
|
||||
# homeassistant.components.wled
|
||||
wled==0.1.0
|
||||
wled==0.2.1
|
||||
|
||||
# homeassistant.components.bluesound
|
||||
# homeassistant.components.startca
|
||||
|
Loading…
x
Reference in New Issue
Block a user