Skip to content

Commit 77a5143

Browse files
committed
..
1 parent 5fca466 commit 77a5143

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/racklink_pdu/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
import logging
3+
from datetime import timedelta
34
from homeassistant.config_entries import ConfigEntry
45
from homeassistant.core import HomeAssistant
56
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
@@ -29,7 +30,7 @@ async def async_update_data():
2930
_LOGGER,
3031
name="racklink_pdu",
3132
update_method=async_update_data,
32-
update_interval=asyncio.timedelta(seconds=DEFAULT_POLL_INTERVAL),
33+
update_interval=timedelta(seconds=DEFAULT_POLL_INTERVAL),
3334
)
3435

3536
hass.data.setdefault(DOMAIN, {})

0 commit comments

Comments
 (0)