mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 02:49:43 +00:00
Allow event stream over api proxy (#285)
* Allow event stream over api proxy * fix lint * fix lint * cleanup code * fix bug * fix prepare * Fix stream bug * fix api request
This commit is contained in:
@@ -29,11 +29,12 @@ def validate_timezone(timezone):
|
||||
return timezone
|
||||
|
||||
|
||||
# pylint: disable=inconsistent-return-statements
|
||||
def convert_to_docker_ports(data):
|
||||
"""Convert data into docker port list."""
|
||||
# dynamic ports
|
||||
if data is None:
|
||||
return
|
||||
return None
|
||||
|
||||
# single port
|
||||
if isinstance(data, int):
|
||||
|
||||
Reference in New Issue
Block a user