diff --git a/homeassistant/components/wled/__init__.py b/homeassistant/components/wled/__init__.py index 0c2f460d156..e6adb460743 100644 --- a/homeassistant/components/wled/__init__.py +++ b/homeassistant/components/wled/__init__.py @@ -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: diff --git a/homeassistant/components/wled/config_flow.py b/homeassistant/components/wled/config_flow.py index e9d59f4a01b..155cd022fd7 100644 --- a/homeassistant/components/wled/config_flow.py +++ b/homeassistant/components/wled/config_flow.py @@ -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() diff --git a/homeassistant/components/wled/manifest.json b/homeassistant/components/wled/manifest.json index 97e46998511..1b77a068270 100644 --- a/homeassistant/components/wled/manifest.json +++ b/homeassistant/components/wled/manifest.json @@ -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"] diff --git a/requirements_all.txt b/requirements_all.txt index 76b77eb7244..6acf141ab9c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index e8e6de1ab54..a6eca5608f7 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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