Skip to content

Commit 5fca466

Browse files
committed
fixed old library
1 parent 4a238df commit 5fca466

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

custom_components/racklink_pdu/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import asyncio
2+
import logging
23
from homeassistant.config_entries import ConfigEntry
34
from homeassistant.core import HomeAssistant
45
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
56
from .const import DOMAIN, DEFAULT_POLL_INTERVAL
67
from .api import RackLinkAPI, RackLinkAPIError
78

9+
_LOGGER = logging.getLogger(__name__)
10+
811
PLATFORMS = ["switch"]
912

1013
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
@@ -23,7 +26,7 @@ async def async_update_data():
2326

2427
coordinator = DataUpdateCoordinator(
2528
hass,
26-
hass.helpers.logging.logger,
29+
_LOGGER,
2730
name="racklink_pdu",
2831
update_method=async_update_data,
2932
update_interval=asyncio.timedelta(seconds=DEFAULT_POLL_INTERVAL),

0 commit comments

Comments
 (0)