diff --git a/smart-hut/src/components/dashboard/devices/Light.js b/smart-hut/src/components/dashboard/devices/Light.js
index def795e..10e8a8f 100644
--- a/smart-hut/src/components/dashboard/devices/Light.js
+++ b/smart-hut/src/components/dashboard/devices/Light.js
@@ -136,7 +136,7 @@ class Light extends Component {
diff --git a/smart-hut/src/components/dashboard/devices/Thermostats.js b/smart-hut/src/components/dashboard/devices/Thermostats.js
index 17f33f2..71216bf 100644
--- a/smart-hut/src/components/dashboard/devices/Thermostats.js
+++ b/smart-hut/src/components/dashboard/devices/Thermostats.js
@@ -25,7 +25,6 @@ class Thermostats extends Component {
measuredTemperature: this.props.device.measuredTemperature,
useExternalSensors: this.props.device.useExternalSensors,
};
- console.log(this.state);
this.setMode = this.setMode.bind(this);
this.setTargetTemperature = this.setTargetTemperature.bind(this);
}
@@ -34,13 +33,11 @@ class Thermostats extends Component {
if (this.state.timeout) {
clearTimeout(this.state.timeout);
}
- console.log(mode);
//i came to the conclusion that is not possible to set mode.
// Good job Jacob (Claudio)
//this.mode = "HEATING";
const turnOn = mode;
- console.log(turnOn);
if (this.props.tab === "Devices") {
this.props
.saveDevice({ ...this.props.stateOrDevice, turnOn })
diff --git a/smart-hut/src/deviceProps.js b/smart-hut/src/deviceProps.js
index efdb6ae..22a6d3b 100644
--- a/smart-hut/src/deviceProps.js
+++ b/smart-hut/src/deviceProps.js
@@ -32,6 +32,10 @@ function getRoomName(state, ownProps) {
return (state.rooms[getDevice(state, ownProps).roomId] || {}).name;
case "Hosts":
return "Room Name not implemented yet";
+ default:
+ throw new Error(
+ `room name has no value in tab "${state.active.activeTab}"`
+ );
}
}
diff --git a/smart-hut/src/views/Login.js b/smart-hut/src/views/Login.js
index 3544e7a..3a0bf71 100644
--- a/smart-hut/src/views/Login.js
+++ b/smart-hut/src/views/Login.js
@@ -31,7 +31,6 @@ class Login extends Component {
.login(this.state.user, this.state.password)
.then(() => this.props.history.push("/dashboard"))
.catch((err) => {
- console.log("CIAO", err);
this.setState({
error: { state: true, message: err.messages.join(" - ") },
});