Invalidate relay cache after changing config.

Without this we don't see new relays after we add them.
This commit is contained in:
Eli Ribble 2023-05-26 09:47:20 -07:00
parent b4027baf68
commit 0fee05acf7
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ class Manager:
"name": name,
})
_write_config(self.configpath, self.config)
self._relays = []
def relay_set(self, relay: Relay, state: bool) -> None:
if not relay.pin.chip.startswith("fake"):