mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
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:
parent
750bce2b86
commit
089d855c47
@ -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(),
|
||||
}
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user