Skip to content

Commit

Permalink
Fix #580 : Update class name of Philips Hue integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Oct 28, 2019
1 parent 07b6813 commit c52d79d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Text } from 'preact-i18n';
import { Component } from 'preact';
import cx from 'classnames';
import { RequestStatus } from '../../../../../utils/consts';
import MqttDeviceForm from './DeviceForm';
import DeviceForm from './DeviceForm';

class MqttDeviceBox extends Component {
class PhilipsHueDeviceBox extends Component {
saveDevice = async () => {
this.setState({ loading: true });
try {
Expand Down Expand Up @@ -38,7 +38,7 @@ class MqttDeviceBox extends Component {
<div class="loader" />
<div class="dimmer-content">
<div class="card-body">
<MqttDeviceForm {...props} />
<DeviceForm {...props} />

<div class="form-group">
<button onClick={this.saveDevice} class="btn btn-success mr-2">
Expand All @@ -57,4 +57,4 @@ class MqttDeviceBox extends Component {
}
}

export default MqttDeviceBox;
export default PhilipsHueDeviceBox;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component } from 'preact';
import { DeviceFeatureCategoriesIcon } from '../../../../../utils/consts';
import get from 'get-value';

class MqttDeviceForm extends Component {
class PhilipsHueDeviceForm extends Component {
updateName = e => {
this.props.updateDeviceProperty(this.props.deviceIndex, 'name', e.target.value);
};
Expand Down Expand Up @@ -81,4 +81,4 @@ class MqttDeviceForm extends Component {
}
}

export default MqttDeviceForm;
export default PhilipsHueDeviceForm;

0 comments on commit c52d79d

Please sign in to comment.