Bump pysensibo to 1.0.33 (#97853)

* Bump pysensibo to 1.0.33

* for loop
This commit is contained in:
G Johansson 2023-08-05 19:02:44 +02:00 committed by GitHub
parent 03335ae1dc
commit 249fa513c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 178 additions and 4 deletions

View File

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

View File

@ -1985,7 +1985,7 @@ pysaj==0.0.16
pyschlage==2023.7.0
# homeassistant.components.sensibo
pysensibo==1.0.32
pysensibo==1.0.33
# homeassistant.components.serial
# homeassistant.components.zha

View File

@ -1477,7 +1477,7 @@ pysabnzbd==1.1.1
pyschlage==2023.7.0
# homeassistant.components.sensibo
pysensibo==1.0.32
pysensibo==1.0.33
# homeassistant.components.serial
# homeassistant.components.zha

View File

@ -547,6 +547,163 @@
"autoOffEnabled": false,
"antiMoldTimer": null,
"antiMoldConfig": null
},
{
"isGeofenceOnEnterEnabledForThisUser": false,
"isClimateReactGeofenceOnEnterEnabledForThisUser": false,
"isMotionGeofenceOnEnterEnabled": false,
"isOwner": true,
"id": "BBZZBBZZ",
"qrId": "AAAAAAAACC",
"temperatureUnit": "C",
"room": {
"uid": "99YY99YY",
"name": "Bedroom",
"icon": "Diningroom"
},
"acState": {
"timestamp": {
"time": "2022-04-30T11:23:30.067312Z",
"secondsAgo": -1
},
"on": false
},
"lastStateChange": {
"time": "2022-04-30T11:21:41Z",
"secondsAgo": 108
},
"lastStateChangeToOn": {
"time": "2022-04-30T09:43:26Z",
"secondsAgo": 6003
},
"lastStateChangeToOff": {
"time": "2022-04-30T11:21:37Z",
"secondsAgo": 112
},
"location": {
"id": "ZZZZZZZZZZYY",
"name": "Home",
"latLon": [58.9806976, 20.5864297],
"address": ["Sealand 99", "Some county"],
"country": "United Country",
"createTime": {
"time": "2020-03-21T15:44:15Z",
"secondsAgo": 66543240
}
},
"connectionStatus": {
"isAlive": true,
"lastSeen": {
"time": "2022-04-30T11:23:20.642798Z",
"secondsAgo": 9
}
},
"firmwareVersion": "PUR00111",
"firmwareType": "pure-esp32",
"productModel": "pure",
"configGroup": "stable",
"currentlyAvailableFirmwareVersion": "PUR00111",
"cleanFiltersNotificationEnabled": false,
"shouldShowFilterCleaningNotification": false,
"isGeofenceOnExitEnabled": false,
"isClimateReactGeofenceOnExitEnabled": false,
"isMotionGeofenceOnExitEnabled": false,
"serial": "0987654321",
"sensorsCalibration": {
"temperature": 0.0,
"humidity": 0.0
},
"motionSensors": [],
"tags": [],
"timer": null,
"schedules": [],
"motionConfig": null,
"filtersCleaning": {
"acOnSecondsSinceLastFiltersClean": 415560,
"filtersCleanSecondsThreshold": 14256000,
"lastFiltersCleanTime": {
"time": "2022-04-23T15:58:45Z",
"secondsAgo": 588284
},
"shouldCleanFilters": false
},
"serviceSubscriptions": [],
"roomIsOccupied": null,
"mainMeasurementsSensor": null,
"pureBoostConfig": null,
"warrantyEligible": "no",
"warrantyEligibleUntil": {
"time": "2022-04-10T09:58:58Z",
"secondsAgo": 1733071
},
"features": ["optimusTrial", "softShowPlus"],
"runningHealthcheck": null,
"lastHealthcheck": null,
"lastACStateChange": {
"id": "AA22",
"time": {
"time": "2022-04-30T11:21:37Z",
"secondsAgo": 112
},
"status": "Success",
"acState": {
"timestamp": {
"time": "2022-04-30T11:23:30.090144Z",
"secondsAgo": -1
},
"on": false,
"mode": "fan",
"fanLevel": "low",
"light": "on"
},
"resultingAcState": {
"timestamp": {
"time": "2022-04-30T11:23:30.090185Z",
"secondsAgo": -1
},
"on": false,
"mode": "fan",
"fanLevel": "low",
"light": "on"
},
"changedProperties": ["on"],
"reason": "UserRequest",
"failureReason": null,
"resolveTime": {
"time": "2022-04-30T11:21:37Z",
"secondsAgo": 112
},
"causedByScheduleId": null,
"causedByScheduleType": null
},
"homekitSupported": true,
"remoteCapabilities": null,
"remote": {
"toggle": false,
"window": false
},
"remoteFlavor": "Eccentric Eagle",
"remoteAlternatives": [],
"smartMode": null,
"measurements": {
"time": {
"time": "2022-04-30T11:23:20.642798Z",
"secondsAgo": 9
},
"rssi": -58,
"pm25": 1,
"motion": false,
"roomIsOccupied": null
},
"accessPoint": {
"ssid": "Sensibo-09876",
"password": null
},
"macAddress": "00:01:00:01:00:01",
"autoOffMinutes": null,
"autoOffEnabled": false,
"antiMoldTimer": null,
"antiMoldConfig": null
}
]
}

View File

@ -76,12 +76,16 @@ async def test_climate_find_valid_targets() -> None:
async def test_climate(
hass: HomeAssistant, load_int: ConfigEntry, get_data: SensiboData
hass: HomeAssistant,
caplog: pytest.LogCaptureFixture,
get_data: SensiboData,
load_int: ConfigEntry,
) -> None:
"""Test the Sensibo climate."""
state1 = hass.states.get("climate.hallway")
state2 = hass.states.get("climate.kitchen")
state3 = hass.states.get("climate.bedroom")
assert state1.state == "heat"
assert state1.attributes == {
@ -113,6 +117,19 @@ async def test_climate(
assert state2.state == "off"
assert not state3
found_log = False
logs = caplog.get_records("setup")
for log in logs:
if (
log.message
== "Device Bedroom not correctly registered with Sensibo cloud. Skipping device"
):
found_log = True
break
assert found_log
async def test_climate_fan(
hass: HomeAssistant,