Skip to content

Commit 26b9ba1

Browse files
Ronen Gruengrasronengr
Ronen Gruengras
authored andcommitted
Add button to sync time to Nuki Lock
1 parent 99fd75b commit 26b9ba1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

custom_components/hass_nuki_bt/button.py

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ class NukiButtonEntityDescription(ButtonEntityDescription):
5151
device_class=ButtonDeviceClass.UPDATE,
5252
action_function=lambda slf: slf.coordinator._async_update(),
5353
),
54+
NukiButtonEntityDescription(
55+
key="sync_time",
56+
name="Sync Nuki time",
57+
icon="mdi:timer-sync",
58+
action_function=lambda slf: slf.device.update_nuki_time(slf.coordinator._security_pin),
59+
entity_registry_enabled_default=False,
60+
),
5461
)
5562

5663

0 commit comments

Comments
 (0)