Skip to content
Snippets Groups Projects
Unverified Commit 01c105b8 authored by Maciej Bieniek's avatar Maciej Bieniek Committed by GitHub
Browse files

Use `DeviceInfo.hw_version` in DenonAVR integration (#75300)

parent b749622c
No related branches found
No related tags found
No related merge requests found
...@@ -226,9 +226,10 @@ class DenonDevice(MediaPlayerEntity): ...@@ -226,9 +226,10 @@ class DenonDevice(MediaPlayerEntity):
assert config_entry.unique_id assert config_entry.unique_id
self._attr_device_info = DeviceInfo( self._attr_device_info = DeviceInfo(
configuration_url=f"http://{config_entry.data[CONF_HOST]}/", configuration_url=f"http://{config_entry.data[CONF_HOST]}/",
hw_version=config_entry.data[CONF_TYPE],
identifiers={(DOMAIN, config_entry.unique_id)}, identifiers={(DOMAIN, config_entry.unique_id)},
manufacturer=config_entry.data[CONF_MANUFACTURER], manufacturer=config_entry.data[CONF_MANUFACTURER],
model=f"{config_entry.data[CONF_MODEL]}-{config_entry.data[CONF_TYPE]}", model=config_entry.data[CONF_MODEL],
name=config_entry.title, name=config_entry.title,
) )
self._attr_sound_mode_list = receiver.sound_mode_list self._attr_sound_mode_list = receiver.sound_mode_list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment