Skip to content

Commit b4b1065

Browse files
electricstevefrenck
authored andcommitted
Fix pterodactyl server config link (home-assistant#154758)
1 parent 7267c3c commit b4b1065

File tree

1 file changed

+5
-1
lines changed
  • homeassistant/components/pterodactyl

1 file changed

+5
-1
lines changed

homeassistant/components/pterodactyl/entity.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Base entity for the Pterodactyl integration."""
22

3+
from yarl import URL
4+
35
from homeassistant.config_entries import ConfigEntry
46
from homeassistant.const import CONF_URL
57
from homeassistant.helpers.device_registry import DeviceInfo
@@ -33,7 +35,9 @@ def __init__(
3335
name=self.game_server_data.name,
3436
model=self.game_server_data.name,
3537
model_id=self.game_server_data.uuid,
36-
configuration_url=f"{config_entry.data[CONF_URL]}/server/{identifier}",
38+
configuration_url=str(
39+
URL(config_entry.data[CONF_URL]) / "server" / identifier
40+
),
3741
)
3842

3943
@property

0 commit comments

Comments
 (0)