mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-15 20:08:06 +00:00
Fix issues after rebasing
This commit is contained in:
@@ -26,6 +26,7 @@ from ..deviceconfig import DeviceConfig
|
||||
from ..emeterstatus import EmeterStatus
|
||||
from ..exceptions import KasaException
|
||||
from ..feature import Feature
|
||||
from ..firmware import Firmware
|
||||
from ..module import ModuleT
|
||||
from ..protocol import BaseProtocol
|
||||
from .iotmodule import IotModule
|
||||
@@ -718,6 +719,6 @@ class IotDevice(Device):
|
||||
|
||||
@property
|
||||
@requires_update
|
||||
def firmware(self) -> Cloud:
|
||||
def firmware(self) -> Firmware:
|
||||
"""Returns object implementing the firmware handling."""
|
||||
return self.modules["cloud"]
|
||||
return cast(Firmware, self.modules["cloud"])
|
||||
|
@@ -3,12 +3,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from pydantic.v1 import BaseModel
|
||||
|
||||
from datetime import date
|
||||
from typing import Optional
|
||||
|
||||
from pydantic.v1 import BaseModel, Field, validator
|
||||
|
||||
from ...feature import Feature
|
||||
from ...firmware import (
|
||||
Firmware,
|
||||
|
Reference in New Issue
Block a user