Fix #66
This commit is contained in:
parent
638c73ae1a
commit
77eedac4ad
File diff suppressed because one or more lines are too long
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user