mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Reverting a previous change to ensure a parameter is a list
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
def ensure_list(parameter):
|
||||
return parameter if isinstance(parameter, list) else [parameter]
|
||||
|
||||
def matcher(subject, pattern):
|
||||
""" Returns True if subject matches the pattern.
|
||||
Pattern is either a list of allowed subjects or a '*'. """
|
||||
|
||||
Reference in New Issue
Block a user