power: fetch the Smart Things token option as a template
This allows users to store their token in a "secrets" file Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0dc05eac76
commit
10703321b0
|
@ -951,7 +951,7 @@ class SmartThings(HTTPDevice):
|
|||
def __init__(self, config: ConfigHelper) -> None:
|
||||
super().__init__(config, default_port=443, default_protocol="https")
|
||||
self.device: str = config.get("device", "")
|
||||
self.token: str = config.get("token", "")
|
||||
self.token: str = config.gettemplate("token").render()
|
||||
|
||||
async def _send_smartthings_command(self,
|
||||
command: str
|
||||
|
|
Loading…
Reference in New Issue