Michael Prokop
08b0629eca
Fix a bunch of typos ( #9545 )
...
s/Addres /Address /
s/Chnage/Change/
s/Converion/Conversion/
s/Supressing/Suppressing/
s/agains /against /
s/allready/already/
s/analagous/analogous/
s/aquired/acquired/
s/arbitray/arbitrary/
s/argment/argument/
s/aroung/around/
s/attibute/attribute/
s/auxillary/auxiliary/
s/befor /before /
s/commmand/command/
s/conatin/contain/
s/conection/connection/
s/coresponding/corresponding/
s/entites/entities/
s/enviroment/environment/
s/everyhing/everything/
s/expected expected/expected/
s/explicity/explicitly/
s/formated/formatted/
s/incomming/incoming/
s/informations/information/
s/inital/initial/
s/inteface/interface/
s/interupt/interrupt/
s/mimick/mimic/
s/mulitple/multiple/
s/multible/multiple/
s/occured/occurred/
s/occuring/occurring/
s/overrided/overridden/
s/overriden/overridden/
s/platfrom/platform/
s/positon/position/
s/progess/progress/
s/recieved/received/
s/reciever/receiver/
s/recieving/receiving/
s/reponse/response/
s/representaion/representation/
s/resgister/register/
s/retrive/retrieve/
s/reuqests/requests/
s/segements/segments/
s/seperated/separated/
s/sheduled/scheduled/
s/succesfully/successfully/
s/suppport/support/
s/targetting/targeting/
s/thats/that's/
s/the the/the/
s/unkown/unknown/
s/verison/version/
s/while loggin out/while logging out/
2017-09-23 17:15:46 +02:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01:00
Paulus Schoutsen
b939626497
Fix tests no internet ( #6411 )
...
* Fix honeywell tests without internet
* Fix device tracker without internet
* Fix MFI using internet during tests
* Remove I/O from apns tests
2017-03-04 17:15:20 -08:00
Rob Capellini
4891ca1610
Removing calls to mock.assert_called_once_with ( #3896 )
...
If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing. Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions:
self.assertEqual(mock.call_count, 1)
self.assertEqual(mock.call_args, mock.call(call_args))
2016-10-16 16:13:27 -07:00
Pascal Vizeli
bbfd86dec3
Use setup_component in tests v1 ( #3507 )
...
* update unittests like #3414
* setup_component - splunk
* setup_component - statsd
* fix statsd & splunk unittest config values
* component_setup - device_sun_light_trigger
* setup_component - introduction
* component_setup - persistent_notification
* setup_component - logentries, mqtt eventstream
* fix unittest logentries
2016-09-25 23:15:21 +02:00
Paulus Schoutsen
4076ccf639
Use setup_component in tests ( #3414 )
...
* Alarm Control Panel Manual - use setup_component
* Update automation - zone tests
* Update climate - demo tests
* Update climate - generic thermostat tests
* Update cover - command line tests
* Update cover - demo tests
* Update device tracker tests
* Update device tracker - owntracks tests
* Update fan - demo tests
* Update garage door - demo tests
* Update light tests
* Update lock - demo tests
* Update media player - demo tests
* Update notify - command line tests
* Update notify - demo tests
* Update notify - file tests
* Update notify - group tests
* Update sensor - mfi tests
* Update sensor - moldindicator tests
* Update sensor - mqtt room tests
* Update switch - command line
* Update switch - flux
* Update switch tests
* Update scene tests
* Fix wrong default port for mfi switch
2016-09-17 10:29:58 -07:00
Dan Smith
f55095df83
Fix mFi sensors in uninitialized state ( #3246 )
...
If mFi sensors are identified but not fully assigned they can
have no tag value, and mficlient throws a ValueError to signal this.
This patch handles that case by considering such devices to always
be STATE_OFF.
2016-09-06 18:04:20 -07:00
Fabian Affolter
3c615e2319
Use voluptuous for mFi switch ( #3168 )
...
* Migrate to voluptuous
* Take change configuration into account
2016-09-03 20:32:35 -06:00
Paulus Schoutsen
2e79e9d5bb
Correct celcius to celsius ( #1860 )
2016-04-19 20:30:44 -07:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Dan Smith
be04ebf9ed
Give mFi options to control TLS usage
...
The default configuration of the mFi controller generates self-signed
certificates which are valid for short periods of time, and which are
regnerated on start or as needed. This makes requests mad. Since most
people will be using the self-signed certificates anyway, add options
to let them choose non-TLS, or unverified connections if they want/need.
This bumps the mficlient requirement to 0.3.0 for proper handling of
verify=False.
2016-02-29 17:37:41 -08:00
Dan Smith
37e5b98919
Fix mFi error handling in setup_platform
...
The exception we were catching incorrectly referenced the client variable
in local scope instead of the module. Also, if we fail to connect we can
get a requests exception, so catch and handle that as well.
2016-02-25 15:52:13 -08:00
Paulus Schoutsen
09ab3e95c0
Tests should all use test HA
2016-02-14 15:08:23 -08:00
Fabian Affolter
00afaac54c
Update for file header, docstrings, and PEP8/PEP257
2016-02-13 14:19:11 +01: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