This commit is contained in:
Thomas Lovén 2019-08-25 19:37:47 +02:00
parent 638c73ae1a
commit 77eedac4ad
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

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: