core/homeassistant
Phil Frost 7d6ef4445e Report states (#11973)
* Refactor Alexa Smart Home API

Having an object per interface will make it easier to support
properties.

Ideally, properties are reported in context in all responses. However
current implementation reports them only in response to a ReportState
request. This seems to work sufficiently. As long as the device is
opened in the Alexa app, Amazon will poll the device state every few
seconds with a ReportState request.

* Report properties for some Alexa interfaces

Fixes (mostly) #11874.

Other interfaces will need properties implemented as well.

Implementing properties for just PowerController seems sufficient to
eliminate the "There was a problem." error for any device that supports
it, even if other interfaces are supported. Of course the additional
properties will be reported incorrectly in the Alexa app.

Includes a minor bugfix: `reportable` was previously placed incorrectly
in the responses, so Amazon was ignoring it.
2018-01-28 17:00:34 -08:00
..
components Report states (#11973) 2018-01-28 17:00:34 -08:00
helpers Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
scripts check_config.py: allow colorlog==3.1. (#11927) 2018-01-26 10:43:55 -08:00
util Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
__init__.py
__main__.py This change fixes the error `OSError: [WinError 193]` on Windows debuggers (i.e. PyCharm) (#11034) 2017-12-09 16:58:52 -08:00
bootstrap.py Add basic backend support for a system log (#10492) 2017-11-14 20:35:56 -08:00
config.py Core support for hass.io calls & Bugfix check_config (#11571) 2018-01-12 15:29:58 +01:00
const.py Bump dev to 0.63.0.dev0 (#11952) 2018-01-27 12:02:55 -08:00
core.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
exceptions.py Fix recorder crash for long state string - enforce at core level (#9696) 2017-10-25 09:05:30 -07:00
loader.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
monkey_patch.py Make monkey patch work in Python 3.6 (#7848) 2017-06-01 23:23:39 -07:00
package_constraints.txt Upgrade yarl to 0.18.0 (#11609) 2018-01-13 09:01:05 +01:00
remote.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
setup.py Silence redundant warnings about slow setup (#11352) 2018-01-02 12:16:32 -08:00