Improve client info reported to Jellyfin (#79974)
This commit is contained in:
parent
eac1a1e513
commit
8aa5a785b5
2 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
entry_data[CONF_CLIENT_DEVICE_ID] = entry.entry_id
|
||||
hass.config_entries.async_update_entry(entry, data=entry_data)
|
||||
|
||||
client = create_client(device_id=entry.data[CONF_CLIENT_DEVICE_ID])
|
||||
client = create_client(
|
||||
device_id=entry.data[CONF_CLIENT_DEVICE_ID],
|
||||
device_name=hass.config.location_name,
|
||||
)
|
||||
|
||||
try:
|
||||
await validate_input(hass, dict(entry.data), client)
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
|
||||
from typing import Final
|
||||
|
||||
from homeassistant.const import __version__ as hass_version
|
||||
|
||||
DOMAIN: Final = "jellyfin"
|
||||
|
||||
CLIENT_VERSION: Final = "1.0"
|
||||
CLIENT_VERSION: Final = hass_version
|
||||
|
||||
COLLECTION_TYPE_MOVIES: Final = "movies"
|
||||
COLLECTION_TYPE_MUSIC: Final = "music"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue