Paulus Schoutsen
70f05f30d5
Merge pull request #1243 from MartinHjelmare/refactor-mysensors-light
...
Refactor mysensors light
2016-02-17 20:27:52 -08:00
MartinHjelmare
9ac53b502f
Clean up and fix
...
* Add check if V_LIGHT is in values before sending message in
_turn_on_light.
* Replace super calls with self.
* Remove not needed init method in child classes.
* Remove turn_on method in parent class and add update_ha_state
to _turn_on_light, _turn_on_dimmer and _turn_on_rgb_or_w.
2016-02-18 02:04:06 +01:00
MartinHjelmare
6e8c79d531
Change refactor structure
...
* Make a flatter one level inheritance, with MySensorsLight as parent
with four children, one per light type.
* Break out helper methods. One per plain light, dimmer and RGB/RGBW
children and per update, turn_on and turn_off, nine in total. Put
these in the parent.
* Call the helper methods as needed from the child methods update,
turn_on and turn_off.
* Change name of MySensorsLightLight to MySensorsLightPlain.
* Fix module docstrings according to pep257.
* Change name of color util method from rgb_hex_to_list to
rgb_hex_to_rgb_list.
* Add unit tests for rgb_hex_to_rgb_list.
2016-02-18 02:04:06 +01:00
MartinHjelmare
03423cc3a9
Refactor mysensors light
...
* Add a light entity class per V_LIGHT, V_DIMMER, V_RGB and V_RGBW.
Make these classes inherit each other up to MySensorsLight class.
* Map the entity classes to their S_TYPE in a dict.
* Check if an entity class map or just an entity class have been passed
to pf_callback_factory before using the entity_class variable in
homeassistant/components/mysensors.py.
* Add rgb_hex_to_list function in homeassistant/util/color.py.
2016-02-18 02:04:06 +01:00
Paulus Schoutsen
bb37708716
Merge pull request #1296 from kk7ds/honeywell-no-fan
...
Fix #1287 for honeywell US systems with no fan
2016-02-17 12:18:10 -08:00
Per Sandström
0bacc7be07
Merge pull request #1300 from persandstrom/vsure0.5.1
...
update vsure to 0.5.1
2016-02-17 19:34:03 +01:00
Per Sandström
99ac4524b9
update vsure to 0.5.1
2016-02-17 19:28:26 +01:00
Paulus Schoutsen
4d8487e7ba
Merge pull request #1298 from kk7ds/fix-alarmdotcom-dep
...
Fix alarmdotcom requirement 0.0.7 removed
2016-02-17 08:52:10 -08:00
Dan Smith
96dde18ae3
Fix alarmdotcom requirement 0.0.7 removed
...
Looks like alarmdotcom just released 0.1.1 and deleted 0.0.7 which is
breaking our build.
2016-02-17 08:41:46 -08:00
Dan Smith
9aa4028718
Fix #1287 for honeywell US systems with no fan
...
This bumps the somecomfort requirement to 0.2.1 to pull in a change
that makes handling no-fan systems graceful. Adds a test that should
prove it gives us what we want.
If no fan, then fan is always idle and fanmode is None.
2016-02-17 08:16:02 -08:00
Paulus Schoutsen
966b83f648
Merge pull request #1293 from w1ll1am23/Wink_lock_fix
...
Fixed issue with Wink locks lock, and unlock methods
2016-02-17 08:00:51 -08:00
William Scanlon
b2366ce68e
Added optional parameter to lock and unlock methods
2016-02-17 05:50:36 -05:00
Paulus Schoutsen
bd3f0c101d
Merge pull request #1290 from balloob/cleanup-camera
...
Cleanup camera
2016-02-16 23:59:10 -08:00
Paulus Schoutsen
ab9ac80ee0
Update frontend with new camera UI
2016-02-16 23:52:26 -08:00
Paulus Schoutsen
aea0598805
Clean up camera component
2016-02-16 23:52:05 -08:00
Dan Smith
b7c4370e2b
Merge pull request #1271 from kk7ds/nx584-sensors
...
Add nx584 as a sensor platform
2016-02-16 20:40:15 -08:00
Dan Smith
22865e5d96
Add nx584 as a sensor platform
...
This allows you to get every door, window, smoke, etc zone from your security
panel into HA. This uses the live eventing feature of pynx584, which means you
get instantaneous signaling into HA when a door opens or something happens,
which is handy for automating lights on when doors open after dark, etc.
Requires update to pynx584 0.2
2016-02-16 20:24:32 -08:00
Paulus Schoutsen
c66511e0cf
Merge pull request #1275 from balloob/rfxtrxSignalRep
...
Rfxtrx signal rep
2016-02-16 20:23:55 -08:00
Paulus Schoutsen
79dbd14568
Merge pull request #1280 from molobrakos/tellduslive
...
added assumed_state property + improved error handling
2016-02-16 13:51:14 -08:00
Paulus Schoutsen
5756cff8a4
Merge pull request #1281 from molobrakos/eliqonline
...
improve error handling
2016-02-16 11:24:36 -08:00
Erik
44a39636b1
improve error handling
2016-02-16 18:23:08 +01:00
Erik
307b2c629b
catch exception and log
2016-02-16 17:46:25 +01:00
Paulus Schoutsen
bbfa63ee79
Merge pull request #1269 from turbokongen/rfxtrx-newprotocols
...
Add assumed_state for rfxtrx switch and light.
2016-02-16 08:19:27 -08:00
Erik
008d65677b
add assumed state property
2016-02-16 17:18:49 +01:00
Paulus Schoutsen
68973dbc4d
Merge pull request #1276 from balloob/fix_efergy_key_error
...
Catch KeyError as well as ValueError when handling efergy errors.
2016-02-16 07:33:12 -08:00
pavoni
9a6c99264e
Catch KeyError as well as ValueError when handling efergy errors.
2016-02-16 12:05:00 +00:00
Paulus Schoutsen
1d7aea7120
Merge pull request #1272 from infamy/dev
...
initial commit of the neurio_energy sensor
2016-02-15 22:08:35 -08:00
infamy
16865b82d3
initial commit of the neurio_energy sensor
2016-02-15 15:54:07 -08:00
Daniel Høyer Iversen
2ba3df2257
Merge pull request #1264 from balloob/rfxtrxLight
...
Rfxtrx light
2016-02-15 20:59:49 +01:00
Daniel
aec269050f
Add signal repetition to rfxtrx
2016-02-15 19:52:39 +01:00
Daniel
b93ebe1936
Add signal repetition to rfxtrx
2016-02-15 19:45:33 +01:00
Daniel
0010cadd39
Add signal repetition to rfxtrx
2016-02-15 19:41:40 +01:00
Paulus Schoutsen
75f2b4bc0e
Merge pull request #1265 from flyte/tox-execute-all-lint
...
Execute all lint tests even if flake8 reports errors.
2016-02-15 10:21:43 -08:00
John Arild Berentsen
a7ce9ba49e
CI fix
2016-02-15 19:09:53 +01:00
John Arild Berentsen
f429a6c4ff
Add assumed_state for rfxtrx switch and light.
2016-02-15 18:59:11 +01:00
Flyte
a3e8994fcc
Execute all lint tests even if flake8 reports errors.
2016-02-15 10:00:46 +00:00
Daniel
eacfac6fa8
Support on-off device in rfxtrx light
2016-02-15 10:10:29 +01:00
Daniel
0d45470ea6
Support on-off device in rfxtrx light
2016-02-15 10:05:47 +01:00
Paulus Schoutsen
bca3207e0c
Update frontend with assumed_state and delete state support
2016-02-15 01:02:15 -08:00
Paulus Schoutsen
de7a14074e
Merge pull request #1247 from balloob/feature/entity-assumed-state
...
Add assumed_state property to entity
2016-02-14 23:59:35 -08:00
Paulus Schoutsen
cdc93ab670
Merge pull request #1262 from balloob/chore/tests-cleanup
...
More testing cleanup
2016-02-14 23:37:10 -08:00
Paulus Schoutsen
c287520432
MQTT Light test - switch order
2016-02-14 23:16:54 -08:00
Paulus Schoutsen
68803a46b6
Thread pool tweaks
2016-02-14 23:01:49 -08:00
Paulus Schoutsen
8d366a7367
Tests: Mock get_local_ip by default too
2016-02-14 22:01:30 -08:00
Paulus Schoutsen
23b116803b
Merge pull request #1261 from kk7ds/graphite-gaierror
...
Some graphite error handling improvements
2016-02-14 17:40:40 -08:00
Dan Smith
3610f40a6a
Handle EVENT_STATE_CHANGED with no new_state in graphite
...
I noticed some events that came in with new_state=None. Make graphite
defensive about this.
2016-02-14 15:57:03 -08:00
Dan Smith
366595fd90
Catch socket.gaierror in graphite driver
...
If you specify a name that can't be looked up in DNS, socket.connect()
throws socket.gaierror. We should catch and log that situation properly.
2016-02-14 15:44:11 -08:00
Paulus Schoutsen
00486dccea
Merge pull request #1260 from balloob/chore/tests-cleanup
...
Chore/tests cleanup
2016-02-14 15:21:23 -08:00
Paulus Schoutsen
09ab3e95c0
Tests should all use test HA
2016-02-14 15:08:23 -08:00
Paulus Schoutsen
bade0e0d71
Make tests pass flake8
2016-02-14 13:07:21 -08:00