fix dimmable state

This commit is contained in:
britea 2020-04-28 10:59:47 +02:00
parent 7135ddc588
commit 7de6331f0f

View File

@ -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)