Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: petretiandrea/plugp100
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.2
Choose a base ref
...
head repository: petretiandrea/plugp100
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.1.3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Apr 13, 2024

  1. Copy the full SHA
    b3b2997 View commit details
  2. Merge branch 'main' of https://github.com/petretiandrea/plugp100 into…

    … main
    petretiandrea committed Apr 13, 2024
    Copy the full SHA
    99dcfc5 View commit details
  3. chore(release): 5.1.3 [skip ci]

    ## [5.1.3](5.1.2...5.1.3) (2024-04-13)
    
    ### Bug Fixes
    
    * **core:** none credentials when schema is not defined ([b3b2997](b3b2997))
    semantic-release-bot committed Apr 13, 2024
    Copy the full SHA
    0c092b3 View commit details
Showing with 2 additions and 5 deletions.
  1. +1 −1 plugp100/__init__.py
  2. +1 −1 plugp100/discovery/discovered_device.py
  3. +0 −3 tests/conftest.py
2 changes: 1 addition & 1 deletion plugp100/__init__.py
Original file line number Diff line number Diff line change
@@ -16,4 +16,4 @@
from plugp100.api import *
from plugp100.common import *

__version__ = "5.1.2"
__version__ = "5.1.3"
2 changes: 1 addition & 1 deletion plugp100/discovery/discovered_device.py
Original file line number Diff line number Diff line change
@@ -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)

3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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)