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