Skip to content

Commit

Permalink
Increase decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Nov 2, 2024
1 parent dd05330 commit db90bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/nuki_lock/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,14 +474,14 @@ async def to_code(config):

if latitude := config.get(CONF_LATITUDE_NUMBER):
n = await number.new_number(
latitude, min_value=0, max_value=180, step=0.1
latitude, min_value=0, max_value=180, step=0.0000001
)
await cg.register_parented(n, config[CONF_ID])
cg.add(var.set_latitude_number(n))

if longitude := config.get(CONF_LONGITUDE_NUMBER):
n = await number.new_number(
longitude, min_value=0, max_value=180, step=0.1
longitude, min_value=0, max_value=180, step=0.0000001
)
await cg.register_parented(n, config[CONF_ID])
cg.add(var.set_longitude_number(n))
Expand Down

0 comments on commit db90bfd

Please sign in to comment.