Skip to content

Commit

Permalink
Updated myPyllant library to version with multiple heatpump support
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkraft committed Dec 30, 2023
1 parent b37735e commit f3c5a02
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- aioresponses
- pytest
- types-requests
- myPyllant==0.6.7
- myPyllant==0.6.8
- polyfactory
- repo: local
hooks:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/mypyllant/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"integration_type": "hub",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/signalkraft/mypyllant-component/issues",
"requirements": ["myPyllant==0.6.7"],
"version": "v0.7.0b3"
"requirements": ["myPyllant==0.6.8"],
"version": "v0.7.0b4"
}
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ ruff~=0.1.9
pytest==7.4.3
pytest-cov==4.1.0
pytest-homeassistant-custom-component==0.13.77
myPyllant==0.6.7
myPyllant==0.6.8
dacite~=1.7.0
10 changes: 5 additions & 5 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@ async def test_circuit_sensors(
)
assert isinstance(
CircuitFlowTemperatureSensor(0, 0, system_coordinator_mock).native_value,
float,
(int, float, complex),
)
if "heatingCurve" in str(test_data):
assert isinstance(
CircuitHeatingCurveSensor(0, 0, system_coordinator_mock).native_value,
float,
(int, float, complex),
)
if "minFlowTemperatureSetpoint" in str(test_data):
assert isinstance(
CircuitMinFlowTemperatureSetpointSensor(
0, 0, system_coordinator_mock
).native_value,
float,
(int, float, complex),
)
await mocked_api.aiohttp_session.close()

Expand Down Expand Up @@ -152,7 +152,7 @@ async def test_domestic_hot_water_sensor(
)
assert isinstance(
DomesticHotWaterSetPointSensor(0, 0, system_coordinator_mock).native_value,
float,
(int, float, complex),
)
assert isinstance(
DomesticHotWaterCurrentSpecialFunctionSensor(
Expand Down Expand Up @@ -192,7 +192,7 @@ async def test_data_sensor(
)
assert isinstance(
data_sensor.native_value,
float,
(int, float, complex),
)
assert isinstance(
data_sensor.name,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ async def test_water_heater(
)
dhw = DomesticHotWaterEntity(0, 0, system_coordinator_mock)
assert isinstance(dhw.device_info, dict)
assert isinstance(dhw.min_temp, float)
assert isinstance(dhw.max_temp, float)
assert isinstance(dhw.min_temp, (int, float, complex))
assert isinstance(dhw.max_temp, (int, float, complex))
if "currentTemperature" in test_data:
assert isinstance(dhw.current_temperature, float)
assert isinstance(dhw.current_temperature, (int, float, complex))
assert isinstance(dhw.operation_list, list)
assert isinstance(dhw.extra_state_attributes, dict)
assert dhw.current_operation in dhw.operation_list
Expand Down

0 comments on commit f3c5a02

Please sign in to comment.