Bump pysensibo 1.0.35 (#100245)

* Bump pysensibo 1.0.34

* 1.0.35

* Mod tests

* revert refactoring

* Fix tests
This commit is contained in:
G Johansson 2023-09-23 23:01:08 +02:00 committed by GitHub
parent 4a86892d82
commit 06ade74711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 13 deletions

View File

@ -15,5 +15,5 @@
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["pysensibo"], "loggers": ["pysensibo"],
"quality_scale": "platinum", "quality_scale": "platinum",
"requirements": ["pysensibo==1.0.33"] "requirements": ["pysensibo==1.0.35"]
} }

View File

@ -2001,7 +2001,7 @@ pysaj==0.0.16
pyschlage==2023.9.1 pyschlage==2023.9.1
# homeassistant.components.sensibo # homeassistant.components.sensibo
pysensibo==1.0.33 pysensibo==1.0.35
# homeassistant.components.serial # homeassistant.components.serial
# homeassistant.components.zha # homeassistant.components.zha

View File

@ -1502,7 +1502,7 @@ pysabnzbd==1.1.1
pyschlage==2023.9.1 pyschlage==2023.9.1
# homeassistant.components.sensibo # homeassistant.components.sensibo
pysensibo==1.0.33 pysensibo==1.0.35
# homeassistant.components.serial # homeassistant.components.serial
# homeassistant.components.zha # homeassistant.components.zha

View File

@ -608,7 +608,7 @@
"isGeofenceOnExitEnabled": false, "isGeofenceOnExitEnabled": false,
"isClimateReactGeofenceOnExitEnabled": false, "isClimateReactGeofenceOnExitEnabled": false,
"isMotionGeofenceOnExitEnabled": false, "isMotionGeofenceOnExitEnabled": false,
"serial": "0987654321", "serial": "0987654329",
"sensorsCalibration": { "sensorsCalibration": {
"temperature": 0.0, "temperature": 0.0,
"humidity": 0.0 "humidity": 0.0
@ -699,7 +699,7 @@
"ssid": "Sensibo-09876", "ssid": "Sensibo-09876",
"password": null "password": null
}, },
"macAddress": "00:01:00:01:00:01", "macAddress": "00:03:00:03:00:03",
"autoOffMinutes": null, "autoOffMinutes": null,
"autoOffEnabled": false, "autoOffEnabled": false,
"antiMoldTimer": null, "antiMoldTimer": null,

View File

@ -90,18 +90,26 @@ async def test_climate(
assert state1.state == "heat" assert state1.state == "heat"
assert state1.attributes == { assert state1.attributes == {
"hvac_modes": [ "hvac_modes": [
"heat_cool",
"cool", "cool",
"dry",
"fan_only",
"heat", "heat",
"dry",
"heat_cool",
"fan_only",
"off", "off",
], ],
"min_temp": 10, "min_temp": 10,
"max_temp": 20, "max_temp": 20,
"target_temp_step": 1, "target_temp_step": 1,
"fan_modes": ["low", "medium", "quiet"], "fan_modes": [
"swing_modes": ["fixedmiddletop", "fixedtop", "stopped"], "quiet",
"low",
"medium",
],
"swing_modes": [
"stopped",
"fixedtop",
"fixedmiddletop",
],
"current_temperature": 21.2, "current_temperature": 21.2,
"temperature": 25, "temperature": 25,
"current_humidity": 32.9, "current_humidity": 32.9,
@ -113,13 +121,14 @@ async def test_climate(
assert state2.state == "off" assert state2.state == "off"
assert not state3 assert state3
assert state3.state == "off"
found_log = False found_log = False
logs = caplog.get_records("setup") logs = caplog.get_records("setup")
for log in logs: for log in logs:
if ( if (
log.message log.message
== "Device Bedroom not correctly registered with Sensibo cloud. Skipping device" == "Device Bedroom not correctly registered with remote on Sensibo cloud."
): ):
found_log = True found_log = True
break break

View File

@ -18,7 +18,7 @@ async def test_sensor(
hass: HomeAssistant, hass: HomeAssistant,
entity_registry_enabled_by_default: None, entity_registry_enabled_by_default: None,
load_int: ConfigEntry, load_int: ConfigEntry,
monkeypatch: pytest.pytest.MonkeyPatch, monkeypatch: pytest.MonkeyPatch,
get_data: SensiboData, get_data: SensiboData,
) -> None: ) -> None:
"""Test the Sensibo sensor.""" """Test the Sensibo sensor."""