diff options
| author | Wild Stray <wildstray@users.noreply.github.com> | 2018-08-04 22:14:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-04 22:14:16 +0000 |
| commit | 0af1b0aaea43dd9ae7b2454f15bc9f7f6d3589bd (patch) | |
| tree | ea7442e7bc4d35a729287b7f64011a73e5f92bb2 /services | |
| parent | 86cc693f25039b3e149115b9900b31ffd582d8c4 (diff) | |
| download | tplink-energy-monitor-0af1b0aaea43dd9ae7b2454f15bc9f7f6d3589bd.tar.xz tplink-energy-monitor-0af1b0aaea43dd9ae7b2454f15bc9f7f6d3589bd.zip | |
Fix typo that prevented power state to updates
Diffstat (limited to 'services')
| -rw-r--r-- | services/data-broadcaster.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/data-broadcaster.js b/services/data-broadcaster.js index 9e0c5d0..60c2368 100644 --- a/services/data-broadcaster.js +++ b/services/data-broadcaster.js @@ -13,7 +13,7 @@ function broadcastMonthlyUsageUpdate(deviceId, data) { } function broadcastPowerStateUpdate(deviceId, data) { - broadcast(generatePayload('powersState', deviceId, data)); + broadcast(generatePayload('powerState', deviceId, data)); } function broadcast(payload) { @@ -40,4 +40,4 @@ module.exports = { broadcastMonthlyUsageUpdate: broadcastMonthlyUsageUpdate, broadcastPowerStateUpdate: broadcastPowerStateUpdate, generatePayload: generatePayload -}
\ No newline at end of file +} |