home-assistant: support requirements specified by URL
This commit is contained in:
parent
2be9833d6a
commit
a29518707d
|
@ -589,7 +589,7 @@
|
|||
"media_player.songpal" = ps: with ps; [ ];
|
||||
"media_player.sonos" = ps: with ps; [ ];
|
||||
"media_player.soundtouch" = ps: with ps; [ libsoundtouch ];
|
||||
"media_player.spotify" = ps: with ps; [ aiohttp-cors ];
|
||||
"media_player.spotify" = ps: with ps; [ aiohttp-cors spotipy ];
|
||||
"media_player.squeezebox" = ps: with ps; [ ];
|
||||
"media_player.ue_smart_radio" = ps: with ps; [ ];
|
||||
"media_player.universal" = ps: with ps; [ ];
|
||||
|
|
|
@ -106,6 +106,9 @@ build_inputs = {}
|
|||
for component in sorted(components.keys()):
|
||||
attr_paths = []
|
||||
for req in sorted(get_reqs(components, component)):
|
||||
# Some requirements are specified by url, e.g. https://example.org/foobar#xyz==1.0.0
|
||||
# Therefore, if there's a "#" in the line, only take the part after it
|
||||
req = req[req.find('#') + 1:]
|
||||
name = req.split('==')[0]
|
||||
attr_path = name_to_attr_path(name)
|
||||
if attr_path is not None:
|
||||
|
|
Loading…
Reference in New Issue