mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Use DeviceInfo in vlc-telnet (#58618)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
7d235cb9bb
commit
8ed4e500d3
@ -36,6 +36,7 @@ from homeassistant.const import (
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
import homeassistant.util.dt as dt_util
|
||||
@ -140,12 +141,12 @@ class VlcDevice(MediaPlayerEntity):
|
||||
self._media_title: str | None = None
|
||||
config_entry_id = config_entry.entry_id
|
||||
self._attr_unique_id = config_entry_id
|
||||
self._attr_device_info = {
|
||||
"name": name,
|
||||
"identifiers": {(DOMAIN, config_entry_id)},
|
||||
"manufacturer": "VideoLAN",
|
||||
"entry_type": "service",
|
||||
}
|
||||
self._attr_device_info = DeviceInfo(
|
||||
entry_type="service",
|
||||
identifiers={(DOMAIN, config_entry_id)},
|
||||
manufacturer="VideoLAN",
|
||||
name=name,
|
||||
)
|
||||
|
||||
@catch_vlc_errors
|
||||
async def async_update(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user