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
This commit is contained in:
J. Nick Koston 2024-09-04 20:12:43 -10:00 committed by GitHub
parent c8fd48523f
commit 71d35a03e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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