We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7267c3c commit b4b1065Copy full SHA for b4b1065
homeassistant/components/pterodactyl/entity.py
@@ -1,5 +1,7 @@
1
"""Base entity for the Pterodactyl integration."""
2
3
+from yarl import URL
4
+
5
from homeassistant.config_entries import ConfigEntry
6
from homeassistant.const import CONF_URL
7
from homeassistant.helpers.device_registry import DeviceInfo
@@ -33,7 +35,9 @@ def __init__(
33
35
name=self.game_server_data.name,
34
36
model=self.game_server_data.name,
37
model_id=self.game_server_data.uuid,
- configuration_url=f"{config_entry.data[CONF_URL]}/server/{identifier}",
38
+ configuration_url=str(
39
+ URL(config_entry.data[CONF_URL]) / "server" / identifier
40
+ ),
41
)
42
43
@property
0 commit comments