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