File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
custom_components/racklink_pdu Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import asyncio
2+ import logging
23from homeassistant .config_entries import ConfigEntry
34from homeassistant .core import HomeAssistant
45from homeassistant .helpers .update_coordinator import DataUpdateCoordinator
56from .const import DOMAIN , DEFAULT_POLL_INTERVAL
67from .api import RackLinkAPI , RackLinkAPIError
78
9+ _LOGGER = logging .getLogger (__name__ )
10+
811PLATFORMS = ["switch" ]
912
1013async 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 ),
You can’t perform that action at this time.
0 commit comments