pavoni
ee62120fe5
Revise race condition test.
2016-02-19 10:19:14 +00:00
pavoni
7bd4e58b9d
Add tests for race condition.
2016-02-19 09:43:59 +00:00
Dan Smith
d93883f153
Make nx584 expose zone types (sensor classes)
...
With this, plus https://github.com/balloob/home-assistant-polymer/pull/32 ,
I can have nx584 sensors use a proper icon in the UI.
2016-02-18 12:20:35 -08:00
Dan Smith
2d932f89fc
Add sensor_class to binary_sensor
...
This adds a 'sensor_class' property and attribute, which should be either
None or one of several defined SENSOR_CLASSES to indicate contextual
information about what the sensor is measuring.
2016-02-18 12:20:35 -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
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
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
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
Paulus Schoutsen
dd2aec0a08
Restructure tests to ensure unique ports
2016-02-14 12:54:16 -08:00
Dan Smith
0fbd947426
Test Honeywell Round thermostat
...
This includes two changes to the round code:
- Return True on setup success
- Break out the default away temp into a constant
2016-02-14 01:05:18 +00:00
Dan Smith
5921e65d83
Allow specifying location and/or thermostat for Honeywell US
...
This lets you optionally only add thermostats by location or
specific device id, instead of all the thermostats in your
account. This would be helpful if you have two devices in different
houses (i.e vacation home), etc.
2016-02-13 23:13:38 +00:00
Dan Smith
c51dd64bd8
Convert Honeywell platform to use somecomfort library
2016-02-13 23:13:33 +00:00
Paulus Schoutsen
bf0b453677
Merge branch 'hotfix/state-as-number' into dev
...
Conflicts:
homeassistant/const.py
tests/helpers/test_state.py
2016-02-13 08:32:06 -08:00
Fabian Affolter
00afaac54c
Update for file header, docstrings, and PEP8/PEP257
2016-02-13 14:19:11 +01:00
Paulus Schoutsen
1571b33e4a
Fix: state_as_number always return float
2016-02-13 00:08:32 -08:00
Dan Smith
61e2da8827
Add tests for influxdb and fix a bug
...
This adds tests for the influxdb component. It also fixes a bug,
where username and password are required, but not gracefully
handled if they're missing from config.
2016-02-12 05:34:13 +00:00
Dan Smith
484b7b64d7
Re-allow splunk to report string states
...
Splunk *can* take string states, so un-fix that wrong fix.
2016-02-12 02:20:15 +00:00
Paulus Schoutsen
7241762bcc
Merge pull request #1209 from kk7ds/abstract-numeric-state
...
Abstract numeric state
2016-02-11 18:16:57 -08:00
Dan Smith
0a904acd4d
Add some tests for splunk
...
This also fixes issue #1214 , and I think another bug. The splunk
code will just take the value of state.state and try to serialize
it to json if it can't make it into a number. It did this before
I generalized that code. Since json.dumps() will fail on most anything
complicated, I think the right thing to do is *not* try to do that.
2016-02-12 01:45:30 +00:00
Dan Smith
76df759f4c
Add simple statsd tests
...
These are not very amazing, but at least exercise the code a little
to make sure I didn't break anything. Hopefully they're useful in the
future too.
2016-02-12 01:45:30 +00:00
Dan Smith
4a2b956493
Convert statsd, influx, splunk, and graphite to use state_as_number()
...
Fixes #1205
2016-02-12 01:45:25 +00:00
pavoni
2e75a58372
Fix outtracks bug with passive zones.
2016-02-11 20:28:02 +00:00
Paulus Schoutsen
4ce1a67c13
Merge pull request #1077 from xrolfex/wink_garage_door_support
...
Wink Garage Door Support
2016-02-11 07:59:57 -08:00
Eric Rolf
cca6b0c287
Test Fix.
2016-02-11 10:16:57 -05:00
Dan Smith
cc4fa6cd38
Merge pull request #1194 from kk7ds/add-graphite-feeder
...
Add graphite feeder component
2016-02-11 06:36:19 -08:00
Eric Rolf
175b49236c
Fixed style attribute with redefined built in method names.
2016-02-11 09:20:47 -05:00
Eric Rolf
fd0afaa204
Fixed Test Case Logic
2016-02-11 09:12:28 -05:00
Eric Rolf
034cec7152
Fixed Demo Test Cases
2016-02-11 09:06:35 -05:00
Eric Rolf
0da09b85de
refactored test case
2016-02-11 08:37:17 -05:00
Eric Rolf
6b962a2207
Updated coveragec, cleaned up constants, added test for demo.
2016-02-11 08:37:16 -05:00
Dan Smith
7478c36b27
Add graphite feeder component
...
Like recorder, this component listens to all events and reports any
that it can to a graphite installation. This makes it easy to use
graphite for all your data collection and analysis. If you run
carbon-cache (the backend for graphite) on the local machine, no
configuration is required other than enabling the component.
For more info on graphite: http://graphite.wikidot.com/
2016-02-11 05:28:40 +00:00
Paulus Schoutsen
1a38354ed5
Merge pull request #1138 from flyte/mqtt-publish-template
...
Add template support to mqtt.publish service payload.
2016-02-10 21:13:02 -08:00
Flyte
4e0c7f8a3d
Create additional mqtt helper function for using template payload.
2016-02-10 22:38:33 +00:00
Flyte
d52e2019c0
Update mqtt.publish() function to use template_payload. Reorganise publish service. Use mqtt.publish() in tests.
2016-02-10 11:11:02 +00:00
Paulus Schoutsen
dc44ef7356
Support expanding nested groups
2016-02-09 22:43:07 -08:00
Flyte
26fc637ab5
Add payload_template to mqtt 'publish' service call.
2016-02-09 15:41:31 +00:00
Dan Smith
b17df44402
Add tests for mFi switches
2016-02-09 03:03:26 +00:00
Dan Smith
895ddc8433
Add tests for mFi sensors
...
Note that some of the indirection here is so that I can reuse
a few things for mFi switch tests to follow.
2016-02-09 02:59:34 +00:00
Nick Waring
0d2891ebcc
Test file for the proximity component
2016-02-07 08:51:21 +00:00
Paulus Schoutsen
dde80850a6
Merge pull request #1112 from balloob/switch-template
...
First cut of switch.template
2016-02-06 09:12:13 -08:00
pavoni
2622cf2e53
Use available, remove state, improve true,false tests.
2016-02-05 11:18:50 +00:00
Sean Dague
abc253c4c5
implement get_significant_states
...
This adds a new function to history module which returns significant
states. For most domains this is the list of state changes. For the
thermostat domain this also includes attribute changes, so that
changes in the current_temperature are exposed to the graphing layer.
Closes #881
2016-02-03 15:05:43 -05:00
pavoni
5521096c02
Add actions.
2016-02-03 14:29:25 +00:00
pavoni
9a9dbcfaea
Refactor, support template logic values, add tests.
2016-02-03 13:16:13 +00:00
Paulus Schoutsen
b14f7f7ed0
Merge pull request #1099 from balloob/sensor_template_startup_error
...
Sensor template startup error
2016-02-02 18:32:09 -08:00
pavoni
a955f3db08
WIP commit - template state working, on / off still to do.
2016-02-02 19:25:17 +00:00
pavoni
93a38d39ef
Add test for missimng attributes.
2016-02-02 14:15:06 +00:00
Paulus Schoutsen
e7e540d4bb
Clean up and test media player
2016-02-02 00:31:36 -08:00
Paulus Schoutsen
26efaa91a3
Merge pull request #1090 from balloob/fix_sensor_template_entity_id
...
Fix bug in sensor.template entity_id
2016-02-01 21:21:57 -08:00
Paulus Schoutsen
c8bfd27182
No longer ignore ports for Chromecasts
2016-02-01 21:07:33 -08:00
pavoni
7c1241c1f8
Add another test, revise another. Improve coverage.
2016-02-01 18:30:39 +00:00
pavoni
d54e10e54a
Improve test coverage of error conditions.
2016-02-01 18:18:51 +00:00
Daniel
5005b20122
Added and fixed yr tests
2016-02-01 15:50:17 +01:00
Fabian Affolter
e29a2fa45a
Fix typo
2016-02-01 11:49:44 +01:00
Paulus Schoutsen
96710ad410
Add input_select component
2016-01-31 12:52:51 -08:00
magnusknutas
de4dab74b1
Adding weblink component
...
Adding weblink component tests
2016-01-31 18:13:04 +01:00
Paulus Schoutsen
6418634f3a
Merge pull request #1049 from balloob/new-tests
...
Adding more unit tests
2016-01-30 23:32:34 -08:00
Ryan Kraus
a230d00ed0
Added test for Introduction component
...
This test may seem useless, but it is good to ensure that default
components don’t ever crash HASS.
2016-01-30 22:50:56 -05:00
Ryan Kraus
5fdbe5fd9a
More tests for Binary Command Sensor
...
1. Added a test for detecting STATE_OFF
2. Fixed tests for detecting STATE_ON
2016-01-30 22:41:29 -05:00
Ryan Kraus
283d621e90
Added tests for Binary Command Sensor
2016-01-30 22:32:25 -05:00
Ryan Kraus
2d0004f46a
Another test for for command sensor
...
Added a test for command sensors with bad configurations.
2016-01-30 22:16:22 -05:00
Ryan Kraus
6a08f14120
Additional tests for Command Sensor.
...
1. Moved template testing out of main test.
2. Added test for bad command.
2016-01-30 22:13:42 -05:00
Ryan Kraus
97e867052d
Added tests for command sensor
...
Added tests to create and check basic functionality of command sensor.
2016-01-30 22:01:10 -05:00
Paulus Schoutsen
b7722ec452
Allow usage of words domain, service, call_id in service data
2016-01-30 15:18:26 -08:00
magnusknutas
fd6086a5d6
Testing logbook service
2016-01-30 15:18:26 -08:00
Ryan Kraus
b8e149fe7d
Cleaned up universal MP tests
...
Changed all assertEquals in universal media player tests to have
assumed value first.
2016-01-30 14:38:27 -05:00
Ryan Kraus
de61bcb80e
Additional testing for logger component
...
Added an additional test for the logger component the validates the
filtering logic of the filters that were created during setup.
2016-01-30 13:23:35 -05:00
Ryan Kraus
4cc9606bcc
Added test for logger component.
2016-01-30 13:03:46 -05:00
Ryan Kraus
8ac763c6f6
Added test for universal mp service routing.
...
Added tests to ensure that the Universal Media Player is routing
service calls correctly.
2016-01-30 12:26:28 -05:00
Ryan Kraus
c1d057407b
Fixed typo in universal media player test.
2016-01-30 11:53:15 -05:00
Ryan Kraus
c396dbb570
Added tests to check setup and config of universal media player.
2016-01-30 07:18:37 -05:00
pavoni
a3abd8bb08
Revise tracked beacon name.
2016-01-29 22:11:00 +00:00
pavoni
80d2f35cc5
First cut mobile beacon tracking.
2016-01-29 22:11:00 +00:00
pavoni
468a8a1013
Improve owntracks events, add support for stationary ibeacons.
2016-01-29 09:39:00 +00:00
magnusknutas
0a4e857901
And a test just to see if nothing works if not providing any vars
2016-01-26 21:21:54 +01:00
magnusknutas
d4b444823c
Tests for time and a fix for wrong access of _LOGGER
2016-01-26 21:11:30 +01:00
Paulus Schoutsen
6c91831baa
Hide groups when they are views or auto defined
2016-01-24 23:45:06 -08:00
Paulus Schoutsen
f6c53896e3
Allow groups to be used as views
2016-01-24 22:54:45 -08:00
Paulus Schoutsen
048ec0aa66
Merge pull request #964 from balloob/passive-zones
...
Allow passive zones
2016-01-23 18:15:06 -08:00
pavoni
ad62591f43
Change error state to be 'error' rather than 'unknown', trace error.
2016-01-22 16:30:02 +00:00
pavoni
b1f7b5c6d7
Tidy, add test for ValueException logic.
2016-01-22 09:37:20 +00:00
Paulus Schoutsen
bb97af1504
Allow passive zones
2016-01-22 00:00:36 -08:00
pavoni
c615272c06
Tidy.
2016-01-21 23:17:19 +00:00
pavoni
92afcae9be
Add test.
2016-01-21 18:31:44 +00:00
Paulus Schoutsen
8fbb585874
Fix MQTT reconnecting
2016-01-17 21:39:25 -08:00
Ryan Kraus
027d97321f
Merge pull request #911 from rmkraus/service-toggle
...
Added toggle service
2016-01-17 21:11:35 -05:00
Ryan Kraus
0624445627
Added tests for toggle service.
...
1) Added tests to toggle service.
2) Removed color_util import in light tests. It was not being used.
2016-01-17 16:42:18 -05:00
Paulus Schoutsen
09973abe8a
Merge pull request #897 from balloob/input-boolean
...
New component: input_boolean
2016-01-16 08:47:29 -08:00
Philip Lundrigan
f96c5aa62f
Fix bug in locative logic
2016-01-15 13:19:53 -07:00
Paulus Schoutsen
6b899ddc1d
100% test coverage for input_boolean
2016-01-14 23:25:25 -08:00
Paulus Schoutsen
475b631d9c
Initial version input_boolean
2016-01-14 23:18:52 -08:00
Ryan Kraus
57c0f96118
Renamed update_state to update in universal media player
...
Renamed update_state method in universal media player to update so that
it would be called by HA when the state was being published. Moved the
update_ha_state to a function inside of __init__. Updated the tests
accordingly.
2016-01-12 22:15:23 -08:00
Ryan Kraus
07953fb7e3
Removed dependencies property from universal media player
...
The dependencies property was only being called once by the __init__
method so it was removed and the code was moved to the __init__ method.
The tests were updated to reflect this.
2016-01-12 22:15:23 -08:00