Skip to content

Commit

Permalink
Add battery state to Temperature Sensor
Browse files Browse the repository at this point in the history
These work the same as the body sensors, so we can simply import
the existing capability.
  • Loading branch information
pieter committed Apr 30, 2018
1 parent b9b554e commit e41b2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/devices/gateway/sensor_ht.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

const SubDevice = require('./subdevice');
const { Temperature, Humidity } = require('../capabilities/sensor');
const Voltage = require('./voltage');

module.exports = class SensorHT extends SubDevice.with(Temperature, Humidity) {
module.exports = class SensorHT extends SubDevice.with(Temperature, Humidity, Voltage) {
constructor(parent, info) {
super(parent, info);

Expand Down

0 comments on commit e41b2e8

Please sign in to comment.