core/homeassistant
ehendrix23 561f6996c6 Duplicate entities on discovery (#18074)
* Enhancements for DirecTV media player

Following enhancements have been made:

1. Added debug logging
2. Added ability to change channel using select_source service of the remote platform.
3. State will now show paused if a recorded program is paused, for live TV playing will always be returned.
4. Added the following attributes:
    a. media_position: current position of the media (in seconds)
    b. media_position_updated_at: timestamp when media_position was updated.
   c. source: current source (channel).
   d. media_isbeingrecorded: if current media is being recorded or not.
   e. media_rating: TV/Movie rating of the media
   f. media_recorded: if current media is recorded or live TV
   g. media_starttime: Timestamp media was aired

Reordered properties to follow same order as how they are in __init__.py of remote platform.

* Fixed error and cleaned up few items

Fixed an issue when determining if a program is recorded or not.
Cleaned up some coding.

* Fix issue in checking if DTV device is already configured

If a DTV device was configured before, then discovery would add this device again seperately if the name specified in the configuration is different from the name on the DTV.

This issue is fixed now. Part of the fix also ensure to allow multiple "primary" devices on the network to be discovered.
Further also added debug logging to the setup_platform.

* Further improvements

Some additional improvements related to handling the DATA_DIRECTV in hass.data.

* Fixed flake8 issue

Fixed flake8 issue

* Added available property

Added available property

* Updated to use get_locations()

Replaced doing the request for getLocations with the get_locations() API from DirectPy instead.

* Fix for checking if device is available

Fix for checking if device is available and small update to debug log message.

* Fixed lint issue

Fixed lint issue with unused variable by adding ingore for it as this is for a enumerate

* Updated try/except and removed available

Updated tr/except having the except by the statement we're doing except on.
Removed available, will be a different PR.

* Updated known_devices to be tupples in a set

Updated known_devices to be a tupple in a set, removing loop to determine if client was already added.
2018-11-05 19:33:59 +01:00
..
auth Permissions improv (#17811) 2018-10-29 11:28:04 +01:00
components Duplicate entities on discovery (#18074) 2018-11-05 19:33:59 +01:00
helpers Cloud conf (#18216) 2018-11-05 13:21:03 +01:00
scripts Remove unrelated scripts (#18219) 2018-11-05 16:14:34 +01:00
util Extract ruamel.yaml to util with secrets, lovelace ws decorators (#17958) 2018-10-31 13:49:54 +01:00
__init__.py
__main__.py Lint 2018-10-02 10:35:00 +02:00
bootstrap.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
config.py Import homeassistant domain instead of hardcoding it (#17985) 2018-10-30 17:38:09 +02:00
config_entries.py Migrate dialogflow over to the new webhook component (#17804) 2018-10-28 19:25:43 +01:00
const.py Add optional ttl config to route53 component (#18135) 2018-11-02 21:41:26 -06:00
core.py Fire an event when timer gets out of sync (#17398) 2018-10-15 11:34:36 +02:00
data_entry_flow.py Add webhook + IFTTT example (#16817) 2018-09-30 14:45:48 +02:00
exceptions.py Allow config entry setup to raise not ready (#17135) 2018-10-04 15:53:50 +02:00
loader.py Isort preparations (#16555) 2018-09-11 11:21:48 +02:00
monkey_patch.py Narrow scope of various pylint inline disables (#15364) 2018-10-10 12:17:11 +02:00
package_constraints.txt Upgrade astral to 1.7.1 2018-11-01 11:26:33 +01:00
requirements.py Improve package loadable (#16237) 2018-08-28 12:52:18 +02:00
setup.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00