mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Update elgato to 5.1.0 (#103530)
This commit is contained in:
parent
08b43c4477
commit
8371fe520e
@ -16,6 +16,6 @@ async def async_get_config_entry_diagnostics(
|
||||
"""Return diagnostics for a config entry."""
|
||||
coordinator: ElgatoDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id]
|
||||
return {
|
||||
"info": coordinator.data.info.dict(),
|
||||
"state": coordinator.data.state.dict(),
|
||||
"info": coordinator.data.info.to_dict(),
|
||||
"state": coordinator.data.state.to_dict(),
|
||||
}
|
||||
|
@ -7,6 +7,6 @@
|
||||
"integration_type": "device",
|
||||
"iot_class": "local_polling",
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["elgato==5.0.0"],
|
||||
"requirements": ["elgato==5.1.0"],
|
||||
"zeroconf": ["_elg._tcp.local."]
|
||||
}
|
||||
|
@ -734,7 +734,7 @@ ecoaliface==0.4.0
|
||||
electrickiwi-api==0.8.5
|
||||
|
||||
# homeassistant.components.elgato
|
||||
elgato==5.0.0
|
||||
elgato==5.1.0
|
||||
|
||||
# homeassistant.components.eliqonline
|
||||
eliqonline==1.2.2
|
||||
|
@ -596,7 +596,7 @@ easyenergy==0.3.0
|
||||
electrickiwi-api==0.8.5
|
||||
|
||||
# homeassistant.components.elgato
|
||||
elgato==5.0.0
|
||||
elgato==5.1.0
|
||||
|
||||
# homeassistant.components.elkm1
|
||||
elkm1-lib==2.2.6
|
||||
|
@ -70,20 +70,20 @@ def mock_elgato(
|
||||
"homeassistant.components.elgato.config_flow.Elgato", new=elgato_mock
|
||||
):
|
||||
elgato = elgato_mock.return_value
|
||||
elgato.info.return_value = Info.parse_raw(
|
||||
elgato.info.return_value = Info.from_json(
|
||||
load_fixture(f"{device_fixtures}/info.json", DOMAIN)
|
||||
)
|
||||
elgato.state.return_value = State.parse_raw(
|
||||
elgato.state.return_value = State.from_json(
|
||||
load_fixture(f"{device_fixtures}/{state_variant}.json", DOMAIN)
|
||||
)
|
||||
elgato.settings.return_value = Settings.parse_raw(
|
||||
elgato.settings.return_value = Settings.from_json(
|
||||
load_fixture(f"{device_fixtures}/settings.json", DOMAIN)
|
||||
)
|
||||
|
||||
# This may, or may not, be a battery-powered device
|
||||
if get_fixture_path(f"{device_fixtures}/battery.json", DOMAIN).exists():
|
||||
elgato.has_battery.return_value = True
|
||||
elgato.battery.return_value = BatteryInfo.parse_raw(
|
||||
elgato.battery.return_value = BatteryInfo.from_json(
|
||||
load_fixture(f"{device_fixtures}/battery.json", DOMAIN)
|
||||
)
|
||||
else:
|
||||
|
@ -2,23 +2,19 @@
|
||||
# name: test_diagnostics
|
||||
dict({
|
||||
'info': dict({
|
||||
'display_name': 'Frenck',
|
||||
'displayName': 'Frenck',
|
||||
'features': list([
|
||||
'lights',
|
||||
]),
|
||||
'firmware_build_number': 192,
|
||||
'firmware_version': '1.0.3',
|
||||
'hardware_board_type': 53,
|
||||
'mac_address': None,
|
||||
'product_name': 'Elgato Key Light',
|
||||
'serial_number': 'CN11A1A00001',
|
||||
'wifi': None,
|
||||
'firmwareBuildNumber': 192,
|
||||
'firmwareVersion': '1.0.3',
|
||||
'hardwareBoardType': 53,
|
||||
'productName': 'Elgato Key Light',
|
||||
'serialNumber': 'CN11A1A00001',
|
||||
}),
|
||||
'state': dict({
|
||||
'brightness': 21,
|
||||
'hue': None,
|
||||
'on': True,
|
||||
'saturation': None,
|
||||
'on': 1,
|
||||
'temperature': 297,
|
||||
}),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user