mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-16 18:44:58 +00:00
#743 - Trying to fix this.
This commit is contained in:
@@ -20,24 +20,6 @@ class HacsFrontend(HomeAssistantView):
|
||||
return await get_file_response(requested_file)
|
||||
|
||||
|
||||
class HacsPluginViewLegacy(HacsFrontend):
|
||||
"""Alias for legacy, remove with 1.0"""
|
||||
|
||||
name = "community_plugin"
|
||||
url = r"/community_plugin/{requested_file:.+}"
|
||||
|
||||
async def get(self, request, requested_file): # pylint: disable=unused-argument
|
||||
"""DEPRECATED."""
|
||||
hacs = get_hacs()
|
||||
if hacs.system.ha_version.split(".")[1] >= "107":
|
||||
logger = Logger("hacs.deprecated")
|
||||
logger.warning(
|
||||
"The '/community_plugin/*' is deprecated and will be removed in an upcoming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources."
|
||||
)
|
||||
|
||||
return await get_file_response(requested_file)
|
||||
|
||||
|
||||
async def get_file_response(requested_file):
|
||||
"""Get file."""
|
||||
hacs = get_hacs()
|
||||
|
Reference in New Issue
Block a user