mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Add Elgato hw version to device info (#64922)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user