Fix new stream from camera entity from Hass

This commit is contained in:
Alexey Khit
2023-04-15 07:34:38 +03:00
parent 7d3fbf2ee0
commit d633d331bb
4 changed files with 41 additions and 65 deletions
-2
View File
@@ -31,8 +31,6 @@ func NewStream(source any) *Stream {
s.producers = append(s.producers, prod)
}
return s
case *Stream:
return source
case map[string]any:
return NewStream(source["url"])
case nil: