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() {
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user