Chris Halls
5690313084
Report device unavailable state through Emulated Hue ( #29029 )
...
If an entity is in unavailable state in HA, we expose this
as unreachable to Hue clients. This helps when troubleshooting
Hue issues because you can now receive feedback if there is an issue
on the HA side.
2019-11-25 12:17:08 +01:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
croghostrider
b968b53e38
Fix Emulated Hue AttributeError: 'NoneType' object has no attribute '… ( #26018 )
...
* Fix Emulated Hue AttributeError: 'NoneType' object has no attribute 'lower'
* Fix debug
* Update error message
2019-09-03 17:33:48 -07:00
Franck Nijhof
fa79ef1220
Use literal string interpolation in integrations E-G (f-strings) ( #26379 )
2019-09-03 17:10:56 +02:00
croghostrider
08d797edba
check if a light supports brightness ( #26055 )
...
Fix black
Fix black
2019-08-21 08:42:26 -07:00
Paulus Schoutsen
e24d3f15fd
Revert emulated hue changes ( #25732 )
2019-08-06 13:46:07 -05:00
Ville Skyttä
a54ade1189
Spelling fixes ( #25666 )
2019-08-02 23:20:06 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
croghostrider
8ffc6c05b7
Fix wrong exposed light for emulated hue ( #25581 )
...
* Add auto detect if brightness is supported
* Fix
* Fix tests
* Cleanup
2019-07-31 10:34:37 -07:00
Alex Bahm
144b530045
Issue #23514 - fix invalid hue response ( #23909 )
...
Based on the discoveries in issue #23514 , the periodic lack of response from emulated hue was due to an invalid value (null) being returned.
2019-05-25 13:07:23 -07:00
Paulus Schoutsen
a52f96b23a
Add stub services.yaml and make validation mandatory ( #23213 )
2019-04-18 15:13:35 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Alex Bahm
471afb4702
Add color support to emulated hue ( #19590 )
...
* [Hue API] Add color support
Adds color support to the hue api (specifically hue/saturation). Switched from using a tuple to convey state internally to using a dict to make adding new fields easier.
* [Hue API] Add unit test for color support
2019-04-02 11:25:58 -07:00
Thiago Oliveira
77dc7595ee
Allow emulated hue to set climate component temperature ( #19034 )
2019-03-11 00:04:21 +01:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Patrick T.C
49ecca9cb9
Set cover level using emulated_hue ( #19594 )
...
* set cover level using emulated_hue
* changed mapping for service turn_on/off for cover.
* removed whitespace for the sake of hound
* using const for domains instead of hardcoded strings.
* change length of lines for the sake of hound
* fixed under-intended line
* changed intent for the sake of hound
2019-02-11 13:59:34 -05:00
Joakim Plate
d16d14b648
Media player const.py move ( #20822 )
...
* Move more constants to const.py
* Import constants directly from const
* ATTR_ENTITY_ID is not defined in media_player
* MEDIA_PLAYER_PLAY_MEDIA_SCHEMA is still in __init__.py
* Correct imports in tts
* PLATFORM_SCHEMA, SCHEMA is still defined in __init__.py
* Pandora imports several services
* Some additional fixes for move of const in media_player
* Fix hound lengths
2019-02-08 14:18:18 -08:00
merc1031
48f0e8311b
add empy all groups view. Makes Brilliant Lightpad work ( #20564 )
2019-01-29 09:26:07 -08:00
Paulus Schoutsen
1341ecd2eb
Use proper signals ( #18613 )
...
* Emulated Hue not use deprecated handler
* Remove no longer needed workaround
* Add middleware directly
* Dont always load the ban config file
* Update homeassistant/components/http/ban.py
Co-Authored-By: balloob <paulus@home-assistant.io>
* Update __init__.py
2018-11-21 20:55:21 +01:00
Paulus Schoutsen
68d72931c4
block external IP ( #17248 )
...
* block external IP
* Update __init__.py
2018-10-08 20:50:24 +02:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
cdce8p
9aaf11de8c
Async syntax 8/8 ( #17022 )
...
* Async syntax 8
* Pylint fixes
2018-10-01 08:52:42 +02:00
Ville Skyttä
2f7b79764a
More pylint 2 fixes ( #15565 )
...
## Description:
More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).
## Checklist:
- [ ] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +03:00
Paulus Schoutsen
2a76a0852f
Allow CORS requests to token endpoint ( #15519 )
...
* Allow CORS requests to token endpoint
* Tests
* Fuck emulated hue
* Clean up
* Only cors existing methods
2018-07-19 08:37:00 +02:00
Ville Skyttä
bf17ed0917
More pylint 2 fixes ( #15516 )
...
* Pylint 2 useless-import-alias fixes
* Pylint 2 chained-comparison fixes
* Pylint 2 consider-using-get fixes
* Pylint 2 len-as-condition fixes
2018-07-18 11:54:27 +02:00
Paulus Schoutsen
98722e10fc
Decouple emulated hue from http server ( #15530 )
2018-07-18 10:47:06 +02:00
Colin O'Dell
fd38caa287
X-Forwarded-For improvements and bug fixes ( #15204 )
...
* Use new trusted_proxies setting for X-Forwarded-For whitelist
* Only use the last IP in the header
Per Wikipedia (https://en.wikipedia.org/wiki/X-Forwarded-For#Format ):
> The last IP address is always the IP address that connects to the last proxy,
> which means it is the most reliable source of information.
* Add two additional tests
* Ignore nonsense header values instead of failing
2018-06-29 16:27:06 -04:00
Robert Kiss
3921dc77a6
Add SSL peer certificate support to HTTP server ( #15043 )
...
* adding SSL peer certificate support to HTTP server
* remove unnecessary exception block
2018-06-26 11:44:08 -04:00
Marcus
8d87b9fed5
Logitech Pop support for emulated_hue component ( #12833 )
...
* Update hue_api.py
add dummy group handler for logitech-pop
* Update __init__.py
add HueGroupView for logitech pop
* Update __init__.py
removed whitespace on blankline
* fix line limit and space
* fix indents
* fix more docstring and formatting issues.
* fix more whitespace issues
* Fix pylint issue
2018-04-28 20:39:21 +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
Boyi C
321eb2ec6f
Move HomeAssistantView to separate file. Convert http to async syntax. [skip ci] ( #12982 )
...
* Move HomeAssistantView to separate file. Convert http to async syntax.
* pylint
* websocket api
* update emulated_hue for async/await
* Lint
2018-03-08 17:51:49 -08:00
Paulus Schoutsen
f32911d036
Cleanup http ( #12424 )
...
* Clean up HTTP component
* Clean up HTTP mock
* Remove unused import
* Fix test
* Lint
2018-02-15 22:06:14 +01:00
Jack Wilsdon
5426e5c875
emulated_hue: allow customization within emulated_hue configuration ( #11981 )
...
* emulated_hue: add entities configuration
* emulated_hue: update tests to include new entities attribute
2018-01-28 23:40:00 -08:00
Paulus Schoutsen
9123dfce6d
Clarify emulated hue warning ( #11910 )
2018-01-25 11:20:37 +01: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
Charles Garwood
92fe9aadc8
Change some warnings to info ( #10386 )
2017-11-18 20:04:09 +01:00
Joaquín
417240ee3e
Better scene handling ( #10213 )
2017-11-02 12:02:03 +01:00
Paulus Schoutsen
4dc9ac820f
Remove http.development ( #10267 )
...
* Remove http.development
* Remove development
* Remove development from tests
* Remove constant
2017-11-01 13:07:16 +01:00
rbflurry
fd9ceb7381
Replace emulated_hue: with emulated_hue_hidden: for consistency. ( #9382 )
...
* Update __init__.py
* fix lint errors
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
Lint errors
* use get_deprecated instead to log old attr
* Updated tests to hide fan.ceiling_fan
* remove space fix lint
2017-09-26 00:31:35 -07: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
Paul Krischer
258ad8fc16
Fix issue 5728: Emulated Hue UPnP crashes on special characters. ( #9453 )
2017-09-16 22:21:09 +02:00
Adam Stone
73a15ddd64
Fix emulated hue warning message ( #9452 )
2017-09-16 11:17:27 -04:00
Steve
5d52993231
Support Windows in UPNP discovery ( #8936 )
...
* Support WIndows and Linix
* Correct indentation
* reduce line length
* Lint
2017-08-19 15:26:27 +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
Jeff Wilson
9cc3e7e47b
Handle manual edits to emulated_hue_ids.json ( #8560 )
2017-07-19 22:51:50 -07:00
Alok Saboo
86cfc2a0ed
Updated docstrings ( #7383 )
...
* Updated docstrings
* Updated docstrings
* Updated docstrings
* Update docstrings
* Update more docstrings
2017-04-30 20:10:08 -07:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -07:00
Adam Mills
ecfe8e0a9a
Formalize supported_features as entity property ( #5794 )
...
* Formalize supported_features as entity property
* Remove extra emulated_hue conditions
* Generate log message in executor
2017-02-07 20:42:45 -08:00
jeremydk
b7aba525ca
Emulated Hue "host-ip" fails to bind when running in docker without --net=host ( #5550 )
...
* UPNP changes to allow a separate advertised IP and Port.
* Fixing lint.
* UPNP changes to allow a separate advertised IP and Port.
* Fixing lint.
* Update __init__.py
* Moved logic for advertised ip and port into config class.
* Commenting change for clarity.
* Spacing changes for PEP8
* Spacing Changes for PEP8
* Style Changes
2017-01-27 23:42:37 -08:00