Skip to content

Commit

Permalink
Merge pull request #176 from inc-ali/fix-deprecated-enum
Browse files Browse the repository at this point in the history
fix: replaced deprecated enum (#173)
  • Loading branch information
kvj authored Jan 17, 2024
2 parents 99d1232 + 4d038f7 commit 51a6e37
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 51a6e37

Please sign in to comment.