Skip to content

Commit 5fd1d08

Browse files
committed
Initialize HSM status and mode when creating hub device
references #282
1 parent 42c6b4a commit 5fd1d08

File tree

1 file changed

+2
-2
lines changed
  • custom_components/hubitat

1 file changed

+2
-2
lines changed

custom_components/hubitat/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@ async def async_setup(self) -> bool:
287287
"attributes": [
288288
{
289289
"name": "mode",
290-
"currentValue": None,
290+
"currentValue": self.mode,
291291
"dataType": "ENUM",
292292
},
293293
{
294294
"name": "hsm_status",
295-
"currentValue": None,
295+
"currentValue": self.hsm_status,
296296
"dataType": "ENUM",
297297
},
298298
],

0 commit comments

Comments
 (0)