Skip to content

Commit

Permalink
fix: treat HS220 as a switch by default
Browse files Browse the repository at this point in the history
  • Loading branch information
plasticrake committed Jan 10, 2019
1 parent 57ecfba commit 9e828b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- markdownlint-disable MD033 -->

# homebridge-tplink-smarthome

[![NPM Version](https://img.shields.io/npm/v/homebridge-tplink-smarthome.svg)](https://www.npmjs.com/package/homebridge-tplink-smarthome)
Expand All @@ -7,7 +9,7 @@ TPLink Smart Home Plugin for [Homebridge](https://github.com/nfarina/homebridge)

## Models Supported

- **Plugs:** HS100, HS105, HS110, HS200
- **Plugs:** HS100, HS105, HS110, HS200, HS220, HS300
- **Bulbs:** LB100, LB110, LB120, LB130, LB200, LB230

## Installation
Expand Down
2 changes: 1 addition & 1 deletion lib/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const configSetup = function () {
const c = this.config;
c.addCustomCharacteristics = (c.addCustomCharacteristics == null ? true : c.addCustomCharacteristics);
c.deviceTypes = (c.deviceTypes == null ? [] : castArray(c.deviceTypes));
c.switchModels = (c.switchModels == null ? ['HS200'] : c.switchModels); // null = default
c.switchModels = (c.switchModels == null ? ['HS200', 'HS220'] : c.switchModels); // null = default
c.switchModels = (c.switchModels === '' ? [] : castArray(c.switchModels)); // '' = [] (no match)

c.discoveryOptions = c.discoveryOptions || {};
Expand Down

0 comments on commit 9e828b3

Please sign in to comment.