Paulus Schoutsen
6ef64f6b1c
Fix CORS error in emulated_hue ( #59570 )
2021-11-11 22:11:41 -08:00
Simone Chemelli
8b6d0ca13f
Replace util.get_local_ip in favor of components.network.async_get_source_ip() - part 2 ( #53368 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-06 08:44:38 -10:00
J. Nick Koston
70961c79a0
Migrate emulate_hue to use storage to fix I/O in event loop ( #50473 )
2021-05-12 16:10:28 +02:00
Franck Nijhof
ad13a9295e
Merge multiple context managers in tests ( #48146 )
2021-03-27 09:17:15 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
27bd6ca1db
Sort imports according to PEP8 for emulated_hue ( #29667 )
2019-12-09 12:12:41 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Nicko van Someren
50f0eac7f3
Fixed issue #16903 re exception with multiple simultanious writes ( #17636 )
...
Reworked tests/components/emulated_hue/test_init.py to not be
dependent on the specific internal implementation of util/jsonn.py
2018-10-23 10:54:03 +02:00
Nicko van Someren
b0b3620b2b
Added working support for private storage ( #16903 )
...
* Fixed file corruption bugs in private storage code.
* Restoring fixed test case.
* Implemented test suite for utils/json.py
* Added new unit test cases for util/json.py
* Dixed formatting nags
* Fixed more nags from the Hound
* Added doc strings to some very short functions
* Fixing lint's complains about my choice of parts of speach. Sigh.
* Moved atomic save operations down into util/json.py so that all benefit.
Added extra clean-up code to ensure that temporary files are removed in
case of errors.
Updated emulated_hue unit tests to avoid errors.
* Apparently 'e' is not allows as a variable name for an exception...
2018-10-02 10:16:43 +02:00
Anders Melchiorsen
726cf9b1c4
Remove unused import ( #16909 )
...
* Remove unused import
* Revert test usage
2018-09-27 00:21:29 +02:00
Nicko van Someren
e5861241c7
Added support for private storage. ( #16878 )
...
* Addded support for private storage.
Include 'private' flag parameters to the Store class and save_json function.
Updated various authentication and onboarding classes to use private stores.
Fixed unit test for emulated_hue which used a mock patch on save_json().
* Fixed Hound formatting issues not detected by local linting.
2018-09-26 10:24:32 +02:00
Marc Forth
2d2e8034d6
Removed the google home warning from emulated_hue ( #13436 )
...
* Removed the google home warning from emulated_hue
* Update test_init.py
* Update test_init.py
2018-03-25 00:45:25 -07:00
Otto Winter
2ae0c5653e
Fix source code using Windows newline ( #12248 )
...
* 🚜 Fix usage of carriage return
* 🤝 Rebase and repeat
* 🚜 Fix file permissions
2018-02-09 08:11:47 +01:00
Paulus Schoutsen
88b70e964c
Remove execution file perm ( #11563 )
2018-01-09 23:55:14 -08:00
Markus Nigbur
a83e741dc7
Refactored to new global json saving and loading ( #10677 )
...
* Refactored to new global json saving and loading
* Fixed emulated_hue tests
* Removed unnecassary error handling
* Added missing newline
* Remove unused imports
* Fixed linting error
* Moved _load_json wrapper out of the config class
2017-11-19 19:47:55 -08:00
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
cribbstechnologies
369caeedbd
fixing emulated hue issue and testing it ( #8928 )
...
* fixing emulated hue issue and testing it
* fixing hound issues
* I should probably stop using vim
* Check against dict directly instead of items.
2017-08-12 08:50:02 -07:00
Paulus Schoutsen
887a33c7d1
Persist emulated hue IDs ( #5435 )
2017-01-19 21:27:10 -08:00
Johann Kellerman
f0b1874d2d
Fix up docstring for tests ( #5090 )
2016-12-28 20:04:59 +02:00
Paulus Schoutsen
a9be6c36f1
Re-org emulated_hue and fix google home ( #4708 )
2016-12-04 10:57:48 -08:00