Skip to content

Commit

Permalink
try to fix persist issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blakadder authored Dec 23, 2021
1 parent 4e1eb4e commit ecedb54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nspanel.be
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Sonoff NSPanel Tasmota driver v0.45 | code by blakadder and s-hadinger
# Sonoff NSPanel Tasmota driver v0.46 | code by blakadder and s-hadinger
var mode = "NSPanel"
import persist
var devicename = tasmota.cmd("DeviceName")["DeviceName"]
persist.tempunit = tasmota.get_option(8) == 1 ? "F" : "C"
if persist.has("dim") else persist.dim = "1" end
Expand Down

0 comments on commit ecedb54

Please sign in to comment.