We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fca466 commit 77a5143Copy full SHA for 77a5143
custom_components/racklink_pdu/__init__.py
@@ -1,5 +1,6 @@
1
import asyncio
2
import logging
3
+from datetime import timedelta
4
from homeassistant.config_entries import ConfigEntry
5
from homeassistant.core import HomeAssistant
6
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
@@ -29,7 +30,7 @@ async def async_update_data():
29
30
_LOGGER,
31
name="racklink_pdu",
32
update_method=async_update_data,
- update_interval=asyncio.timedelta(seconds=DEFAULT_POLL_INTERVAL),
33
+ update_interval=timedelta(seconds=DEFAULT_POLL_INTERVAL),
34
)
35
36
hass.data.setdefault(DOMAIN, {})
0 commit comments