cleand up lint errors
This commit is contained in:
1 parent
cc2597c408
commit
c07e1aca49
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
class AutomationLoaderException(Exception):
|
class AutomationLoaderException(Exception):
|
||||||
def __init__(self, *args: object, **kwargs) -> None:
|
def __init__(self, *args: object, **kwargs) -> None:
|
||||||
super().__init__(
|
super().__init__(
|
||||||
"".join(args) + ",".join((f"{k}={v}" for k, v in kwargs.items())),
|
"".join(map(str, args)) + ",".join((f"{k}={v}" for k, v in kwargs.items())),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class AutomationManager:
|
|||||||
if updated_index is None:
|
if updated_index is None:
|
||||||
automations.append(automation.to_primitive())
|
automations.append(automation.to_primitive())
|
||||||
updated_index = len(automations) - 1
|
updated_index = len(automations) - 1
|
||||||
tags[updated_index] = automation.tags
|
tags[automation.metadata.id] = automation.tags
|
||||||
self.hass_config.save_automations(automations)
|
self.hass_config.save_automations(automations)
|
||||||
self.hass_config.save_tags(tags)
|
self.hass_config.save_tags(tags)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user