Skip to content

Commit 4aa7d2a

Browse files
committed
fix: factor
1 parent 1b5a882 commit 4aa7d2a

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Diff for: changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 3.5.1
4+
Fixed:
5+
- Fix: sendPowerSensorEvent sets factor even when specified.
6+
37
## Version 3.5.0
48
New:
59
- Support Start/Stop and Open/Close capabilities.

Diff for: library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"homepage": "https://sinric.pro",
21-
"version": "3.5.0",
21+
"version": "3.5.1",
2222
"frameworks": "arduino",
2323
"platforms": ["espressif8266", "espressif32", "raspberrypi"],
2424
"dependencies": [

Diff for: library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SinricPro
2-
version=3.5.0
2+
version=3.5.1
33
author=Boris Jaeger <[email protected]>
44
maintainer=Boris Jaeger <[email protected]>
55
sentence=Library for https://sinric.pro - simple way to connect your device to alexa

Diff for: src/Capabilities/PowerSensor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool PowerSensor<T>::sendPowerSensorEvent(float voltage, float current, float po
5959
JsonObject event_value = eventMessage[FSTR_SINRICPRO_payload][FSTR_SINRICPRO_value];
6060
if (power == -1)
6161
power = voltage * current;
62-
if (apparentPower != -1)
62+
if (factor == -1 && apparentPower != -1)
6363
factor = power / apparentPower;
6464

6565
unsigned long currentTimestamp = device->getTimestamp();

Diff for: src/SinricProVersion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Version Configuration
77
#define SINRICPRO_VERSION_MAJOR 3
88
#define SINRICPRO_VERSION_MINOR 5
9-
#define SINRICPRO_VERSION_REVISION 0
9+
#define SINRICPRO_VERSION_REVISION 1
1010
#define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
1111
#define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
1212
#define SINRICPRO_VERISON_INT SINRICPRO_VERSION_MAJOR * 1000000 + SINRICPRO_VERSION_MINOR * 1000 + SINRICPRO_VERSION_REVISION

0 commit comments

Comments
 (0)