Skip to content

Commit

Permalink
Allow negative timezone offset
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Nov 1, 2024
1 parent c2b3aad commit 0774936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ void NukiLockComponent::set_config_number(std::string config, float value) {
}
else if(config == "timezone_offset")
{
if(value >= 0 && value <= 60)
if(value >= -60 && value <= 60)
{
cmd_result = this->nuki_lock_.setTimeZoneOffset(value);
}
Expand Down

0 comments on commit 0774936

Please sign in to comment.