mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Update post review
This commit is contained in:
@@ -20,6 +20,8 @@ from ...exceptions import KasaException
|
||||
from ..smartcammodule import SmartCamModule
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
logging.getLogger("aiohttp").setLevel(logging.WARNING)
|
||||
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||
|
||||
DEFAULT_LISTEN_PORT = 28002
|
||||
|
||||
@@ -31,7 +33,7 @@ TOPIC_EVENT_TYPE = {
|
||||
}
|
||||
|
||||
|
||||
class Listen(SmartCamModule):
|
||||
class OnvifListen(SmartCamModule):
|
||||
"""Implementation of lens mask module."""
|
||||
|
||||
manager: NotificationManager
|
@@ -133,9 +133,11 @@ class SmartCamDevice(SmartDevice):
|
||||
import onvif # type: ignore[import-untyped] # noqa: F401
|
||||
except ImportError:
|
||||
return
|
||||
from .modules.listen import Listen
|
||||
from .modules.onviflisten import OnvifListen
|
||||
|
||||
self._modules[Listen._module_name()] = Listen(self, Listen._module_name())
|
||||
self._modules[OnvifListen._module_name()] = OnvifListen(
|
||||
self, OnvifListen._module_name()
|
||||
)
|
||||
|
||||
async def _initialize_modules(self) -> None:
|
||||
"""Initialize modules based on component negotiation response."""
|
||||
|
Reference in New Issue
Block a user