fix dimmable states
This commit is contained in:
parent
7135ddc588
commit
5e055bc477
1 changed files with 3 additions and 3 deletions
|
@ -378,10 +378,10 @@ export const RemoteService = {
|
|||
updateState: (data, type) => {
|
||||
return (dispatch) => {
|
||||
let url;
|
||||
if (type === "dimmableState") {
|
||||
url = "/dimmableState";
|
||||
} else {
|
||||
if (data.on) {
|
||||
url = "/switchableState";
|
||||
} else {
|
||||
url = "/dimmableState";
|
||||
}
|
||||
|
||||
return Endpoint.put(url, {}, data)
|
||||
|
|
Loading…
Reference in a new issue