mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-27 09:06:24 +00:00
Fix linting
This commit is contained in:
parent
1e4df7ec1b
commit
2a0919efd5
@ -3,14 +3,14 @@ import logging
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from typing import Any, DefaultDict, Dict, Optional
|
from typing import Any, DefaultDict, Dict, Optional
|
||||||
import asyncio
|
|
||||||
from kasa.smartdevice import (
|
from kasa.smartdevice import (
|
||||||
DeviceType,
|
DeviceType,
|
||||||
EmeterStatus,
|
EmeterStatus,
|
||||||
SmartDevice,
|
SmartDevice,
|
||||||
SmartDeviceException,
|
SmartDeviceException,
|
||||||
requires_update,
|
|
||||||
merge,
|
merge,
|
||||||
|
requires_update,
|
||||||
)
|
)
|
||||||
from kasa.smartplug import SmartPlug
|
from kasa.smartplug import SmartPlug
|
||||||
|
|
||||||
@ -270,7 +270,6 @@ class SmartStripPlug(SmartPlug):
|
|||||||
month = datetime.now().month
|
month = datetime.now().month
|
||||||
|
|
||||||
req: Dict[str, Any] = {}
|
req: Dict[str, Any] = {}
|
||||||
from .smartdevice import merge
|
|
||||||
|
|
||||||
merge(req, self._create_request("emeter", "get_realtime"))
|
merge(req, self._create_request("emeter", "get_realtime"))
|
||||||
merge(req, self._create_request("emeter", "get_monthstat", {"year": year}))
|
merge(req, self._create_request("emeter", "get_monthstat", {"year": year}))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user