custom_components/webrtc/__init__.py, custom_components/webrtc/utils.py

This commit is contained in:
Home Assistant Version Control
2026-07-29 17:01:37 +00:00
parent 0bca647dff
commit 7e2cc04b0f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -244,9 +244,9 @@ class Server(Thread):
return self.process.poll() is None if self.process else False
def run(self):
env = None
env = os.environ.copy()
if self.config_dir:
env = {**__import__("os").environ, "CONFIG": self.config_dir + "/go2rtc.yaml"}
env["CONFIG"] = self.config_dir + "/go2rtc.yaml"
while self.binary:
self.process = subprocess.Popen(
[self.binary], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env