Update post review

This commit is contained in:
Steven B
2024-12-19 16:59:34 +00:00
parent f4857ef76d
commit 8b4f3ed084
4 changed files with 24 additions and 17 deletions

View File

@@ -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

View File

@@ -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."""