Skip to content

Commit

Permalink
fix(core): none credentials when schema is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
petretiandrea committed Apr 13, 2024
1 parent 391378e commit b3b2997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion plugp100/discovery/discovered_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def get_tapo_device(
logging.warning(
f"No encryption schema found for discovered device {self.ip} {self.device_type}")
config = DeviceConnectConfiguration(
host=self.ip, port=80, device_type=self.device_type
host=self.ip, port=80, device_type=self.device_type, credentials=credentials
)
return await connect(config, session)

Expand Down
3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
from typing import Any, cast
from unittest.mock import patch, AsyncMock

import aiohttp
import pytest

from plugp100.api.requests.tapo_request import (
TapoRequest,
ControlChildParams,
MultipleRequestParams,
)
from plugp100.api.tapo_client import TapoClient
from plugp100.common.credentials import AuthCredential
from plugp100.common.functional.tri import Try
from plugp100.new.device_factory import DeviceConnectConfiguration, connect
from plugp100.new.tapodevice import TapoDevice
from plugp100.protocol.tapo_protocol import TapoProtocol

from plugp100.responses.tapo_response import TapoResponse

plug = pytest.mark.parametrize("device", ["p100.json", "p105.json"], indirect=True)
Expand Down

0 comments on commit b3b2997

Please sign in to comment.