This commit is contained in:
thomas committed 2019-08-25 19:37:47 +02:00
1 parent 638c73ae1a
commit 77eedac4ad
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -9,9 +9,9 @@ export class CoverController extends Controller {
get _value() {
switch (this.attribute) {
case "position":
return this.stateObj.state === "open"
? this.stateObj.attributes.current_position
: 0;
return this.stateObj.state === "closed"
? 0
: this.stateObj.attributes.current_position;
case "tilt":
return this.stateObj.attributes.current_tilt_position;
default: