Add Elgato hw version to device info (#64922)
parent
43c4611285
commit
2e1ac711fb
|
@ -21,6 +21,7 @@ class ElgatoEntity(Entity):
|
|||
model=info.product_name,
|
||||
name=info.display_name,
|
||||
sw_version=f"{info.firmware_version} ({info.firmware_build_number})",
|
||||
hw_version=str(info.hardware_board_type),
|
||||
)
|
||||
if mac is not None:
|
||||
self._attr_device_info["connections"] = {
|
||||
|
|
|
@ -47,6 +47,7 @@ async def test_button_identify(
|
|||
assert device_entry.model == "Elgato Key Light"
|
||||
assert device_entry.name == "Frenck"
|
||||
assert device_entry.sw_version == "1.0.3 (192)"
|
||||
assert device_entry.hw_version == "53"
|
||||
|
||||
await hass.services.async_call(
|
||||
BUTTON_DOMAIN,
|
||||
|
|
|
@ -68,6 +68,7 @@ async def test_light_state_temperature(
|
|||
assert device_entry.model == "Elgato Key Light"
|
||||
assert device_entry.name == "Frenck"
|
||||
assert device_entry.sw_version == "1.0.3 (192)"
|
||||
assert device_entry.hw_version == "53"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Reference in New Issue