1
mirror of https://github.com/home-assistant/core synced 2024-07-12 07:21:24 +02:00

Add Elgato hw version to device info (#64922)

This commit is contained in:
Franck Nijhof 2022-01-25 20:29:18 +01:00 committed by GitHub
parent 43c4611285
commit 2e1ac711fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -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"] = {

View File

@ -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,

View File

@ -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(