Bump bsblan to 0.5.19 (#123515)

* bump bsblan lib version

* chore: Update bsblan diagnostics to use to_dict() instead of dict() method
This commit is contained in:
Willem-Jan van Rootselaar 2024-08-10 12:28:48 +02:00 committed by GitHub
parent 750bce2b86
commit 089d855c47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ async def async_get_config_entry_diagnostics(
"""Return diagnostics for a config entry."""
data: HomeAssistantBSBLANData = hass.data[DOMAIN][entry.entry_id]
return {
"info": data.info.dict(),
"device": data.device.dict(),
"state": data.coordinator.data.dict(),
"info": data.info.to_dict(),
"device": data.device.to_dict(),
"state": data.coordinator.data.to_dict(),
}

View File

@ -7,5 +7,5 @@
"integration_type": "device",
"iot_class": "local_polling",
"loggers": ["bsblan"],
"requirements": ["python-bsblan==0.5.18"]
"requirements": ["python-bsblan==0.5.19"]
}

View File

@ -2253,7 +2253,7 @@ python-awair==0.2.4
python-blockchain-api==0.0.2
# homeassistant.components.bsblan
python-bsblan==0.5.18
python-bsblan==0.5.19
# homeassistant.components.clementine
python-clementine-remote==1.0.1

View File

@ -1798,7 +1798,7 @@ python-MotionMount==2.0.0
python-awair==0.2.4
# homeassistant.components.bsblan
python-bsblan==0.5.18
python-bsblan==0.5.19
# homeassistant.components.ecobee
python-ecobee-api==0.2.18

View File

@ -48,11 +48,11 @@ def mock_bsblan() -> Generator[MagicMock]:
patch("homeassistant.components.bsblan.config_flow.BSBLAN", new=bsblan_mock),
):
bsblan = bsblan_mock.return_value
bsblan.info.return_value = Info.parse_raw(load_fixture("info.json", DOMAIN))
bsblan.device.return_value = Device.parse_raw(
bsblan.info.return_value = Info.from_json(load_fixture("info.json", DOMAIN))
bsblan.device.return_value = Device.from_json(
load_fixture("device.json", DOMAIN)
)
bsblan.state.return_value = State.parse_raw(load_fixture("state.json", DOMAIN))
bsblan.state.return_value = State.from_json(load_fixture("state.json", DOMAIN))
yield bsblan