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() { get _value() {
switch (this.attribute) { switch (this.attribute) {
case "position": case "position":
return this.stateObj.state === "open" return this.stateObj.state === "closed"
? this.stateObj.attributes.current_position ? 0
: 0; : this.stateObj.attributes.current_position;
case "tilt": case "tilt":
return this.stateObj.attributes.current_tilt_position; return this.stateObj.attributes.current_tilt_position;
default: default: