Skip to content

Commit

Permalink
fix: replaced deprecated enum (kvj#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
inc-ali committed Jan 7, 2024
1 parent f5e61bd commit 4d038f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/nuki_ng/lock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from homeassistant.components.lock import LockEntity, SUPPORT_OPEN
from homeassistant.components.lock import LockEntity, LockEntityFeature

import logging

Expand Down Expand Up @@ -27,7 +27,7 @@ def __init__(self, coordinator, device_id):

@property
def supported_features(self):
return SUPPORT_OPEN
return LockEntityFeature.OPEN

@property
def lock_mode(self):
Expand Down

0 comments on commit 4d038f7

Please sign in to comment.