mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Made the data attribute of Event optional
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
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 '*'. """
|
||||
return '*' in pattern or subject in pattern
|
||||
Reference in New Issue
Block a user