Skip to content

Commit

Permalink
## [3.1.1] - 24.11.2024
Browse files Browse the repository at this point in the history
- Bug fix: If inverted, the status wasn't displayed correctly
  - Thanks to [https://github.com/joomoz](https://github.com/joomoz)!
  • Loading branch information
jisotalo committed Nov 24, 2024
1 parent 53dee18 commit 416ef18
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.1] - 24.11.2024
- Bug fix: If inverted, the status wasn't displayed correctly
- Thanks to [https://github.com/joomoz](https://github.com/joomoz)!

## [3.1.0] - 22.11.2024
- Added check for Shelly time change
- If time changes more than 5 minutes, prices and logic are updated
Expand Down
2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-1-instance-no-history.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-addon-temp-hours.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-addon-temp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-ht-sensor-temp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-open-meteo-api.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/shelly-porssisahko.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const CNST = {
let _ = {
s: {
/** version number */
v: "3.1.0",
v: "3.1.1",
/** Device name */
dn: '',
/** 1 if config is checked */
Expand Down
4 changes: 2 additions & 2 deletions src/statics/tab-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

qs("s-st").innerHTML = si.st === 9
? STATE_STR[si.st].replace("%s", formatDateTime(new Date(si.fCmdTs * 1000), false))
: STATE_STR[si.st] + (ci.inv ? " (inverted)" : "");
: STATE_STR[si.st] + (ci.i ? " (inverted)" : "");

//Extended status for instance (by user scripts)
if (si.str != "") {
Expand Down Expand Up @@ -262,7 +262,7 @@
&& !foff;

//Invert
if (ci.inv) {
if (ci.i) {
cmd = !cmd;
}

Expand Down

0 comments on commit 416ef18

Please sign in to comment.