Skip to content

Commit

Permalink
fix toLowerCase crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaybz committed Nov 8, 2020
1 parent 61061ee commit 3dd0435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OccupancySensor {
this.log = platform.log
this.api = platform.api
this.threshold = !config.threshold && config.threshold !== 0 ? platform.threshold : config.threshold
this.mac = config.mac.toLowerCase()
this.mac = config.mac ? config.mac.toLowerCase() : null
this.ip = config.ip
this.name = config.name
this.model = 'ARP-network-scanner'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-network-presence",
"version": "1.0.1",
"version": "1.0.2",
"description": "Homebridge plugin that provides occupancy sensors for devices presence in your network",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit 3dd0435

Please sign in to comment.