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
Paulus Schoutsen
06de73ff80
Allow removing a state via API + remote StateMachine
2016-02-13 23:00:38 -08:00
Paulus Schoutsen
ada2fb4ec0
Fire event when we remove a state
2016-02-13 22:57:40 -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
Dan Smith
3aa34deaa2
Add state_as_number() helper
...
This adds state_as_number(), a helper method that tries to interpret
state as a number, for cases we can predict. It's a generalization of
what is copy-and-paste-ed into multiple other places.
2016-02-12 00:41:32 +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
Paulus Schoutsen
e83f8da342
Merge pull request #1185 from balloob/perf-states
...
Make State class more immutable
2016-02-10 18:53: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
af8f6bcaba
Remove deprecated methods from core
2016-02-09 23:59:31 -08:00
Paulus Schoutsen
b0948bef5f
Make State class immutable
2016-02-09 23:27:01 -08: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
Paulus Schoutsen
a5db23afa4
Mock util.location by default
2016-02-04 22:26:02 -08: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
61630783f1
Disable location queries
2016-02-02 21:33:59 -08: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
Paulus Schoutsen
2da422fd77
Merge pull request #1098 from balloob/media-player-test
...
Clean up and test media player
2016-02-02 08:09:40 -08:00
pavoni
93a38d39ef
Add test for missimng attributes.
2016-02-02 14:15:06 +00:00
Ryan Kraus
1a5d18fd66
Merge pull request #1012 from balloob/restart-service
...
Restart service
2016-02-02 07:15:40 -05:00
Paulus Schoutsen
e7e540d4bb
Clean up and test media player
2016-02-02 00:31:36 -08:00
Erik
00d1cab091
add test for unsafe yaml
2016-02-02 08:41:18 +01: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
Paulus Schoutsen
1789a08d21
Merge pull request #1065 from kennedyshead/weblink
...
Weblink component
2016-01-31 09:20:17 -08:00
magnusknutas
de4dab74b1
Adding weblink component
...
Adding weblink component tests
2016-01-31 18:13:04 +01:00
Paulus Schoutsen
fce8815ab4
Support custom interval for platforms
2016-01-31 01:01:23 -08:00
Paulus Schoutsen
90e17fc77f
Add tests for entity component
2016-01-31 01:01:23 -08: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
Ryan Kraus
2651021461
Added test for entity customization
...
Added test for entity customization from configuration. Processes a
sample configuration to hide an entity, creates the entity, updates ha
state, and then verifies customization made it through.
2016-01-30 21:27:00 -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
56ac4281c7
Better tear down of util/package tests
...
Explicitly removed temp directory at the end of util/package unit tests.
2016-01-30 14:39:17 -05: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
4a8f55e630
Revised package util tests
...
The package util tests were revised to pull the external library
pyhelloworld3 from an internal source rather than external. This speeds
up tests, makes tests more reliable, and removes dependency on internet
connection.
2016-01-30 14:08:32 -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
Ryan Kraus
0631f5c59d
Added tests for package utilities
2016-01-30 06:44:22 -05:00
Ryan Kraus
106c53abf1
Revised HASS Core test
...
Changed the HASS Core test that tested KeyboardInterrupt handling to
now test SIGTERM handling. KeyboardInterrupts are no longer handled in
the HASS application process as they are handled in the HASS parent
process. SIGTERM is the proper way to now stop HASS.
2016-01-29 22:42:39 -05:00
Paulus Schoutsen
ef132e4583
Add tests for color util
2016-01-29 18:44:21 -08: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
magnusknutas
2382dffbf4
pushed test code :) fixed now
2016-01-26 20:49:51 +01:00
magnusknutas
33b0f4d05d
Fixes bug in time trigger and adds test for ex. /two
2016-01-26 20:43:29 +01:00
magnusknutas
cff77a175d
Year periodic test (just to trigger travis but should maybe be here anyway)
2016-01-26 18:44:41 +01:00