Upgrade linter (#4461)
This commit is contained in:
1 parent
37e28428c1
commit
d2bbc6ef70
21 files changed
+28
-7
No files matched your search
@@ -305,6 +305,7 @@ def time_zone(value):
|
||||
'Invalid time zone passed in. Valid options can be found here: '
|
||||
'http://en.wikipedia.org/wiki/List_of_tz_database_time_zones')
|
||||
|
||||
|
||||
weekdays = vol.All(ensure_list, [vol.In(WEEKDAYS)])
|
||||
|
||||
|
||||
|
||||
@@ -417,6 +417,7 @@ class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
||||
"""Test if callback is safe."""
|
||||
return isinstance(obj, AllStates) or super().is_safe_callable(obj)
|
||||
|
||||
|
||||
ENV = TemplateEnvironment()
|
||||
ENV.filters['round'] = forgiving_round
|
||||
ENV.filters['multiply'] = multiply
|
||||
|
||||
Reference in new issue
Block a user