mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Recode Home Assistant instance name to ascii for Jellyfin (#87368)
Recode instance name to ascii
This commit is contained in:
parent
73cd62bd32
commit
8d88b02c2e
@ -20,10 +20,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
entry_data[CONF_CLIENT_DEVICE_ID] = entry.entry_id
|
entry_data[CONF_CLIENT_DEVICE_ID] = entry.entry_id
|
||||||
hass.config_entries.async_update_entry(entry, data=entry_data)
|
hass.config_entries.async_update_entry(entry, data=entry_data)
|
||||||
|
|
||||||
client = create_client(
|
device_id = entry.data[CONF_CLIENT_DEVICE_ID]
|
||||||
device_id=entry.data[CONF_CLIENT_DEVICE_ID],
|
device_name = ascii(hass.config.location_name)
|
||||||
device_name=hass.config.location_name,
|
|
||||||
)
|
client = create_client(device_id=device_id, device_name=device_name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
user_id, connect_result = await validate_input(hass, dict(entry.data), client)
|
user_id, connect_result = await validate_input(hass, dict(entry.data), client)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user