From 71d35a03e17b4b48c1c33df541377b92b6cfd3b1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 4 Sep 2024 20:12:43 -1000 Subject: [PATCH] Switch hassio to use with_path where possible (#125268) * Switch hassio to use with_path where possible Any place we are joining to the root url, we can use with_path as its much faster * revert --- homeassistant/components/hassio/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hassio/handler.py b/homeassistant/components/hassio/handler.py index c57e43f73f3..7c8d5c61a22 100644 --- a/homeassistant/components/hassio/handler.py +++ b/homeassistant/components/hassio/handler.py @@ -568,7 +568,7 @@ class HassIO: This method is a coroutine. """ - joined_url = self._base_url.join(URL(command)) + joined_url = self._base_url.with_path(command) # This check is to make sure the normalized URL string # is the same as the URL string that was passed in. If # they are different, then the passed in command URL