Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert stream source to method #23905

Merged
merged 2 commits into from May 23, 2019

Conversation

Projects
None yet
4 participants
@balloob
Copy link
Member

commented May 16, 2019

Description:

Convert the stream source property to a method because some integrations will need to fetch it.

For example UVC #22562 could use this.

@balloob balloob requested a review from Kane610 as a code owner May 16, 2019

@balloob balloob requested a review from hunterjm May 16, 2019

@balloob balloob referenced this pull request May 16, 2019

Closed

Update UVC to support stream source #22562

8 of 9 tasks complete
with async_timeout.timeout(10):
source = await camera.stream_source()

if not source:

This comment has been minimized.

Copy link
@Kane610

Kane610 May 17, 2019

Contributor

Source does not always exist in this context

This comment has been minimized.

Copy link
@balloob

balloob May 19, 2019

Author Member

I just assigned it 2 lines above ?

This comment has been minimized.

Copy link
@balloob

balloob May 19, 2019

Author Member

If the timeout expires, an exception will be raised.

with async_timeout.timeout(10):
source = await camera.stream_source()

if not source:

This comment has been minimized.

Copy link
@Kane610

Kane610 May 17, 2019

Contributor

See above

Show resolved Hide resolved homeassistant/components/camera/__init__.py Outdated
Show resolved Hide resolved homeassistant/components/camera/__init__.py Outdated
Show resolved Hide resolved homeassistant/components/camera/__init__.py Outdated
Show resolved Hide resolved homeassistant/components/camera/__init__.py Outdated
Show resolved Hide resolved homeassistant/components/camera/__init__.py Outdated

balloob added some commits May 16, 2019

@balloob balloob force-pushed the stream-source-async branch from fff1318 to c3b9839 May 23, 2019

@balloob balloob merged commit 1de0a0b into dev May 23, 2019

14 checks passed

build Workflow: build
Details
ci/circleci: pre-install-all-requirements Your tests passed on CircleCI!
Details
ci/circleci: pre-test 3.5.5 Your tests passed on CircleCI!
Details
ci/circleci: pre-test 3.6 Your tests passed on CircleCI!
Details
ci/circleci: pre-test 3.7 Your tests passed on CircleCI!
Details
ci/circleci: pylint Your tests passed on CircleCI!
Details
ci/circleci: static-check Your tests passed on CircleCI!
Details
ci/circleci: test 3.5.5 Your tests passed on CircleCI!
Details
ci/circleci: test 3.6 Your tests passed on CircleCI!
Details
ci/circleci: test 3.7 Your tests passed on CircleCI!
Details
cla-bot Everyone involved has signed the CLA
codecov/patch 100% of diff hit (target 94.13%)
Details
codecov/project 94.13% (target 90%)
Details
home-assistant Build #20190523.27 succeeded
Details

@delete-merged-branch delete-merged-branch bot deleted the stream-source-async branch May 23, 2019

Teagan42 added a commit to Teagan42/home-assistant that referenced this pull request May 27, 2019

Pull in latest (#2)
* Add "soc-thermal 1" as CPU Temp label to Glances (home-assistant#23635)

* deCONZ - Retry on BridgeBusy errors (home-assistant#23436)

* Added option to select photoblack cartridge (home-assistant#23433)

* Added option to select photoblack cartridge

* Update sensor.py

* Name change

* Fix bad request for some IP ONVIF camera (home-assistant#22972)

* Onvif camera improvements using zeep

* Fix static code checks

* Make obtain_input_uri async

* Convert several methods to async

* Fix static checks

* Fix static checks

* Fix requirements_all.txt

* Lint improvements

* Async services

* Use onvif-zeep-async and check if PTZ service is available before creating it

* Remove some hacks that are now defined in onvif-zeep-async

* Don't log input, it might contain sensitive information

* Static code analysis fixes

* Run requirements stuff

* Fix

* Remove suds requirement

* Onvif camera improvements using zeep

* Fix static code checks

* Make obtain_input_uri async

* Convert several methods to async

* Fix static checks

* Fix static checks

* Fix requirements_all.txt

* Lint improvements

* Async services

* Use onvif-zeep-async and check if PTZ service is available before creating it

* Remove some hacks that are now defined in onvif-zeep-async

* Don't log input, it might contain sensitive information

* Static code analysis fixes

* Run requirements stuff

* Fix

* Remove suds requirement

* Use dt_util.utcnow

* Platform setup should not have a return value

* Remove explicit dependency to zeep[async]

* Bump onvif-zeep-async to 0.1.2

* Update requirements_all.txt

* Add exception handling

* Fix static checks

* Don't catch generic exceptions

* Update camera.py

* Bump pyteleloisirs version (home-assistant#23661)

* Bump pyteleloisirs version

* requirements update

* Upgrade psutil to 5.6.2 (home-assistant#23671)

* Upgrade shodan to 1.13.0 (home-assistant#23675)

* Upgrade slacker to 0.13.0 (home-assistant#23672)

* Upgrade tapsaff to 0.2.1 (home-assistant#23676)

* Upgrade sqlalchemy to 1.3.3 (home-assistant#23674)

* Remove extraneous update call in SimpliSafe (home-assistant#23680)

* Upgrade pysnmp to 4.4.9 (home-assistant#23677)

* Upgrade spotcrime to 1.0.4 (fixes home-assistant#13189) (home-assistant#23679)

* Add Bizkaibus, Biscays (Spain) bus service component (home-assistant#22934)

* Updated to the current version of dev

* Added the component to .coveragerc

* Added __init__.py and manifest.json

* Changed the manifest to comply the json format

* Changes in for complete the PEP8 Code

* Fixed the api call to use PyPI package

* Fixed API correrct call

* Fixes for complete the requirements

* Added dependencies in manifest.json

* Changed the __init__.py to complete PEP8

* Simplified the __init__.py

* Runned codeowner script

* executed gen_requirements_all.py

* Direct call for dicts and unit changed to minutes

* Fixed the optional dict call, sorry, my bad, I did not that

* Deleted unused vars

* Changed optional parameter to required

* Remove blank first line

* Add HomeKit Television functionality  (home-assistant#22968)

* Clean and fix google calendar tests (home-assistant#23608)

* Clean and fix google calendar tests

* Extract test calendar constant for google test
* Rewrite google calendar tests
* Clean and fix google calendar tests
* Clean and fix google component tests
* Add google conftest
* Skip flaky google calendar test

* Fix google calendar bug

* Fix yield fixture

* Set fixture names to avoid lint warning

* Fix yield fixture

* Update requirements for pyvlx. (home-assistant#23694)

* Clean up mqtt device tracker tests (home-assistant#23700)

* Move mqtt device tracker test under mqtt dir

* Patch config file load and save

* Clean up

* Sort imports

* Put expected value last in assertions

* Clean up device tracker tests (home-assistant#23695)

* Clean up device tracker tests

* Fix async load config in device tracker tests.
* Clean up lint in device tracker tests.
* Sort device tracker tests imports.
* Patch config saving in device tracker tests.
* Rename fixture.
* Rename some tests that had long cryptic names.

* Replace calls  to device_tracker.async_setup

* Move Sonos services to sonos domain (home-assistant#23670)

* Move owntracks device tracker test under owntracks (home-assistant#23701)

* Add support for SET_AWAY_MODE and TURN_ON/OFF on Daikin Climate (home-assistant#23585)

* add support for on/off on daikin climate

* add support for away mode on daikin climate

* Bump ZHA modules versions. (home-assistant#23705)

* Bump ZHA modules versions.

Bump bellows-homeassistant version.
Bump zigpy-homeassistant version.
Bump zigpy-xbee-homeassistant version.

* Update requirements_*.txt

* Add additional single input cluster entries - ZHA (home-assistant#23697)

* more profiles

* remove from binary sensor profile

* remove sensor profile mapping

* Add media_type_app to media_player (home-assistant#23666)

* Add media_type_app

* Add MEDIA_TYPE_APP

* Bump 0.7.3

* Bump 0.7.3

* Bump 0.7.3

* typo

* Add a TCP timeout of 5 seconds to ffmpeg (home-assistant#23617)

Add a TCP timeout of 5 seconds to ffmpeg to fix stream getting stuck when network connectivity is lost
home-assistant#22741

* Bump pyheos to 0.5.2 (home-assistant#23708)

* Catch thethingsnetwork TypeError (home-assistant#23667)

* Catch TypeError (fixes home-assistant#23097)

* Re-add return values

* Update homeassistant/components/thethingsnetwork/sensor.py

Co-Authored-By: fabaff <mail@fabian-affolter.ch>

* Use local constant in Daikin for STATE_OFF (home-assistant#23712)

* Upgrade sendgrid to 6.0.5 (home-assistant#23711)

* bump zha-quirks (home-assistant#23714)

* Update IDs after firmware upgrade in HEOS (home-assistant#23641)

* Initial work

* Update tests

* huawei_lte: handle icons for None sensor values gracefully (home-assistant#23649)

* Use the URL provided by the Wink API for subscriptions. (home-assistant#23710)

* Use the URL provided by the Wink API for subscriptions.

* Changed python-wink version

* Upgrade switchbot , fixes home-assistant#23702 (home-assistant#23716)

* Fix SmartThings Samsung Air Conditioner Support (home-assistant#23706)

* Bump pysmartthings to 0.6.8

* Fix AC climate device

* Fix stale comment

* Share snmp constants across all platforms (home-assistant#23678)

* Share constants across all platforms

* Update .coveragerc

* Add TTL support and custom headers support. (home-assistant#22988)

* Add TTL custom support and custom headers support.

* fix pywebpush version

* removed whitespaces surrounding docstrings.

* fixes for tests

* priority option to data

* checking of ATTR_ENDPOINT

* change checking of target to vol.Schema

* more tests

* Added new binary sensor meteoalarm to get weather alerts in Europe (home-assistant#23663)

* Added new component meteoalarm

* Update sensor.py

* Update manifest.json

* Update manifest.json

* Update manifest.json

* Added file CODEOWNERS

* Modified some code, thanks @amelchio

* removed Throttle because is not being used anymore

* Update _attributes ad _state

* some cleanup

* Update sensor.py

Change sensor to binarysensor

* Rename sensor.py to binary_sensor.py

rename the file

* Update binary_sensor.py

Removed BinarySensorDevice from class

* Update binary_sensor.py

Made a mistake with BinarySensorDevice

* Update binary_sensor.py

clean up white spaces

* Update binary_sensor.py

Fix BinarySensorDevice

* Update binary_sensor.py

cleanup the import libs

* modified __init__

* fix

* final fix, thanks @amelchio

* forgot to change the sensor.py

* correct some typo in text

* fix typos

* fix another typo

* fix typo

* add abbreviation for current_temperature_template (home-assistant#23733)

* Add water_heater to geniushub, bump client library (home-assistant#23384)

* add water_heater

* add geniushub/water_heater.py

* de-lint

* de-lint 2

* remove temperature from device state attribs

* update to latest client library

* add me as CODEOWNER

* bump client

* bump client

* delint/refactor

* Update homeassistant/components/geniushub/water_heater.py

Co-Authored-By: zxdavb <david@bonnes.me>

* Add debug prints to sun (home-assistant#23598)

* Add debug prints to sun

* Review comment

* Add HEOS sign-in/out services (home-assistant#23729)

* Add HEOS sign-in/out services

* Fix typo in comment

* Fix Hue sensor integration with multiple bridges. (home-assistant#23713)

* Fix effects on HUE integration for Osram bulbs (home-assistant#22789)

* Fix hue effect for others

* New suggestion

* switched implementation to remove colorloop for osram bulbs

* Check ATTR_EFFECT in kwargs

* Fix  tests

* Upgrade aiodns to 2.0.0 (home-assistant#23743)

* Add abbreviation for position_topic (home-assistant#23740)

* Update PR template (home-assistant#23520)

* Update PR template

* Update config, PR template

* Add Intergas InComfort Lan2RF gateway (home-assistant#23736)

* fixed __init__.py

* add sensors

* switch to parent-child architecture

* make binary_sensor the parent

* revert parent - to water_heater

* first working version

* working, delinted (except TODO)

* update to latest client library

* remove debug code

* delint

* tweak device_state_attributes

* tweak device_state_attrbutes

* minor tweaks

* bump client library for bugfix

* improve state attributes for pumping

* update .coverage

* bugfix - binary sensors not updating

* rename to incomfort from intouch

* fix coveragerc regression

* bump client (bugfix for /protected URL)

* bump client (bugfix for /protected URL) 2

* bump client

* remove debug code

* ready for PR

* fix regression

* use xx._boiler instead of xx._objref

* improve current_temperature and delint

* use current_operation instead of state

* refactor vol.Schema

* remove unneeded instance attribute

* remove unneeded instance attribute 2

* refactor device_state_attributes

* change 'boiler' to 'heater'

* change 'boiler' to 'heater' 2

* correct a typo

* bugfix: add missing comma

* small tidy-up

* Fix upnp logger name (home-assistant#23724)

* Fix upnp logger name

* Fix more loggers

* Add update events to registries (home-assistant#23746)

* Add update events to registries

* Add to websocket

* Add integration step to onboarding (home-assistant#23732)

* Return an extra oauth2 auth code during onboarding

* Areas in const

* Add integration step

* Lint

* Fix tests

* Fix test

* Verify integration added to done

* Verify step is marked as done

* Updated frontend to 20190507.0

* Merge netatmo_public sensor into the netatmo integration (home-assistant#23531)

* Merge netatmo public into netatmo integration

* Remove netatmo_public platform

* Remove dev log messages

* Improve error handling

* Check config for unsupported conditions

* Fix linter

* Reduce nested blocks

* Upgrade numpy to 1.16.3 (home-assistant#23673)

* Upgrade Mastodon.py to 1.4.0 (home-assistant#23753)

* New cover platform for ADS integration (home-assistant#23377)

* new cover platform

* improve logging II

* remove dependencies

* fix comment

* fix review findings

* Update azure-pipelines.yml for Azure Pipelines

* Prompt for pin only on open / unlock (home-assistant#23751)

* Prompt for pin only on open / unlock

* Fixed test cases

* Upgrade defusedxml to 0.6.0 (home-assistant#23651)

* Refactor child validation (home-assistant#23482)

* Try to make the process more readable and paritioned.
* Validate child values using set message.
* Only validate using relevant schemas.
* Extract node validation.
* Rework const types and schemas.
* Rework child validator.
* Enhance warning logging message.

* Update Sesame component to use Candy House's library using the V3 API (home-assistant#23621)

* Update Sesame component to use Candy House's library using the V3 API

* Updated requirements_all.txt

* Fix pylint warning

* Revert back to ATTR_DEVICE_ID

* Upgrade zeroconf to 0.22.0 (home-assistant#23524)

* No longer rely on requests (home-assistant#23685)

* No longer rely on requests

* Lint

* Missed a few parts

* Fix types

* Fix more types

* Update __main__.py

* Fix tests

* Lint

* Fix script

* Update azure-pipelines.yml for Azure Pipelines

* Updated frontend to 20190508.0

* Update translations

* Bumped version to 0.93.0b0

* Version bump to 0.94.0.dev0

* Bump pyatmo to v1.11 (home-assistant#23766)

* Add Presence Detector Indoor to Homematic IP (home-assistant#23755)

* Add presence detector indoor

use device classes constants

* Add illuminance

* isort

* Split up yaml loaders into multiple files (home-assistant#23774)

* Start moving parts of yaml utils to own module

Move parts of yaml loader out of the single large file and start
to create the structure of the yaml loaders in Ansible [0].

[0]: https://github.com/ansible/ansible/tree/devel/lib/ansible/parsing/yaml

* Finish yaml migration, update tests and mocks

  * Move code around to finish the migration
  * Update the mocks so that `open` is patched in
    `homeassistant.util.yaml.loader` instead of
    `homeassistant.util.yaml`.
  * Updated mypy ignores
  * Updated external API of `homeasistant.util.yaml`, see below:

Checked what part of the api of `homeassistant.util.yaml` was actually
called from outside the tests and added an `__ALL__` that contains only
these elements.

Updated the tests so that references to internal parts of the API (e.g.
the yaml module imported into `homeassistant.util.yaml.loader`) are
referenced directly from `homeassistant.util.yaml.loader`.

In `tests/test_yaml.py` the import `yaml` refers to
`homeassistant.util.yaml` and `yaml_loader` refers to `~.loader`.

Future work that remains for the next iteration is to create a custom
SafeConstructor and refers to that instead of monkey patching `yaml` with
custom loaders.

* Update mocks in yaml dumper, check_config

* Add config entry for IQVIA (home-assistant#23765)

* Add config entry for IQVIA

* Updated tests and requirements

* Removed unnecessary dependency

* Fixed tests

* Reverted unintended change

* Add stepped volume to demo (home-assistant#23759)

* Add stepped volume to demo

* Simplify somewhat to avoid extra check

* Add battery binary sensor to homematic (home-assistant#23067)

* first proposal

* parameter rename

* retrigger CI

* remove separate binary sensor

* remove batter_sensor

* battery device distinction at binary sensor discovery

* Updated frontend to 20190509.0

* fix two times creating JWT headers. (home-assistant#23777)

* Sort discovered entries by 'st' to ensure getting the same device each discovery (home-assistant#23763)

* Beta Fix: ONVIF (home-assistant#23787)

* bump package to include wsdl

* update requirements all

* Fix for issue home-assistant#23739.  Added unique_id property so (home-assistant#23769)

that entities will always get mapped to the same
property ZPID code.

* Update sensor.py

* Sort discovered entries by 'st' to ensure getting the same device each discovery (home-assistant#23763)

* Bump pyatmo to v1.11 (home-assistant#23766)

* Fix for issue home-assistant#23739.  Added unique_id property so (home-assistant#23769)

that entities will always get mapped to the same
property ZPID code.

* Beta Fix: ONVIF (home-assistant#23787)

* bump package to include wsdl

* update requirements all

* Updated frontend to 20190509.0

* Bump version 0.93.0b1

* Bumped keenetic NDMS2 client version (home-assistant#23786)

* Add support for an external step in config flow (home-assistant#23782)

* Add support for an external step in config flow

* Types

* Lint

* Centralize geniushub updates (home-assistant#23764)

* add hub/parent/manager

* add hub/parent/manager 2

* working now

* delint

* add back water heater

* make water_heater a child

* make water_heater a child - delint

* make water_heater a child - delint 2

* improve turn_on logic, and small tidy-up

* improve turn_on logic 2

* improve turn_on logic 3 - better docstring

* improve turn_on logic 3 - better docstring

* remove unnecessary DICT.get()s

* remove unnecessary DICT.get()s 2

* code tidy-up

* de-lint

* refactor for GeniusData

* refactor for GeniusData 2

* code tidy-up

* add missing should_poll = False

* Move tests to right folder (home-assistant#23790)

* Move tests to right folder

* Fix test leaving files behind

* Synchronize Sonos service calls (home-assistant#23791)

* Updated frontend to 20190510.0

* Updated frontend to 20190510.0

* Synchronize Sonos service calls (home-assistant#23791)

* Bumped version to 0.93.0b2

* Do not add coordinator to the ZHA entities. (home-assistant#23803)

* fix onvif wsdl import - take 2 (home-assistant#23807)

* Add LCN climate platform (home-assistant#22542)

* Add LCN climate component

* Updates of ha_state are done async

* Changes due to manifest.json

* Bump venstarcolortouch to v0.7 (home-assistant#23806)

* Upgrade youtube_dl to 2019.05.11 (home-assistant#23808)

* Bump pyotgw to 0.4b4, fix Opentherm Gateway name in manifest.json (home-assistant#23810)

* Fix patching right import (home-assistant#23816)

* Add incomfort climate and bump client (home-assistant#23830)

* Initial commit

* bump client for bugfix

* bump client for bugfix 2

* de-lint

* Make broadlink switch restore its state (home-assistant#23829)

* Make broadlink switch restore its state

Method copied from pilight switch

* style

* Catch import error when processing config (home-assistant#23833)

* Remove badges from README [skipci] (home-assistant#23815)

* HomeKit Controller: Adopt config entries for pairing with homekit accessories (home-assistant#23825)

* Fix user initiated pairing + show more user friendly name

* Add lock around async_refresh_entity_map

* Migrate homekit_controller to config entries.

* Improve docstring

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* Add dummy async_setup_platform

* add_service -> async_add_service

* Add missing returns

* Enable coverage checks for homekit_controller

* Automatically generate config flow list (home-assistant#23802)

* Add config flow to manifest.json

* Still load config flows via config flow platform

* Fix typo

* Lint

* Update config_flows.py"

* Catch import error when setting up entry

* Lint

* Fix tests

* Fix imports

* Lint

* Fix Unifi tests

* Fix translation test

* Add homekit_controller config flow

* Add new SmartHab light and cover platform (home-assistant#21225)

* Add SmartHab platform

* Remove url config entry, improve error handling

* Upgrade smarthab dependency

* Address comments

* Lint

* Daikin adaptions for AirBase units (home-assistant#23734)

* updated list of supported fan_modes

* AirBase units does not support Holiday-mode

* AirBase units does not support outside temp

* pydaikin version bump

* don't modify constant

* Fix zha timed off (home-assistant#23849)

* Fix for battery device: new_device referenced before assignment. (home-assistant#23793)

* Fix for battery device: new_device referenced before assignment.

* Fix buttons and switches mixup

* Update __init__.py

* Update binary_sensor.py

* Update __init__.py

* Update __init__.py

* Update binary_sensor.py

* Update __init__.py

* Update binary_sensor.py

* typo and indentation fixes

* low_bat and lowbat to uppercase.

* Better handle large amounts of data being sent over WS (home-assistant#23842)

* Better handle large amounts of data being sent over WS

* Lint

* Zeroconf - replace library (home-assistant#23835)

* Use aiozeroconf in preparation for new zeroconf discovery

* Update requirements

* Remove sleep

* Make stop zeroconf a coroutine

* Remove unused import

* Fix aiozeroconf dependency in default_config tests

* Updated frontend to 20190514.0

* WS: Improve service calling errors (home-assistant#23840)

* WS: Improve service calling errors

* Docstyle

* Types

* Update text

* Updated frontend to 20190514.0

* bump zha-quirks (home-assistant#23855)

* Fix ZHA battery when readings produce an unknown value (home-assistant#23854)

* check for unknown readings

* only publish valid readings

* remove unused constant

* Correct ZHA illumination conversion (home-assistant#23853)

* fix illumination values

* correct formula

* update illuminance calculation

* update test

* Do not add coordinator to the ZHA entities. (home-assistant#23803)

* fix onvif wsdl import - take 2 (home-assistant#23807)

* Fix ZHA battery when readings produce an unknown value (home-assistant#23854)

* check for unknown readings

* only publish valid readings

* remove unused constant

* Correct ZHA illumination conversion (home-assistant#23853)

* fix illumination values

* correct formula

* update illuminance calculation

* update test

* bump zha-quirks (home-assistant#23855)

* Bumped version to 0.93.0b3

* Fix improper usage of body attribute on web.Response. Should be text since we arent sending bytes (home-assistant#23857)

* Allow deletion of automations and scripts (home-assistant#23845)

* Update azure-pipelines.yml for Azure Pipelines

Automated version updates

* Use Cloudhooks for OwnTracks (home-assistant#23847)

* Use Cloudhooks for OwnTracks

* Update config_flow.py

* Update config_flow.py

* Fix aiohttp response serialize (home-assistant#23858)

* Fix aiohttp response serialize

* Suport bytes

* Handle None

* Fix improper usage of body attribute on web.Response. Should be text since we arent sending bytes (home-assistant#23857)

* Bumped version to 0.93.0b4

* Bumped version to 0.93.0

* Fix zha timed off (home-assistant#23849)

* Update azure-pipelines.yml for Azure Pipelines

Automated version updates

* Add geniushub sensor and binary_sensor (home-assistant#23811)

* Initial commit

* add lastComms and de-lint

* dummy commit

* dummy commit 2

* refactor to temp in favour of battery

* back to battery, and no temp

* use snake_case

* Bump client

* only v3 API exposes device attributes

* delint

* delint2

* Change GeniusSwitch to GensiusBinarySensor

* Quiet the chatty sun.sun (home-assistant#23832)

* Split up method to allow caching event

* Lower frequency of updates.

* Code review patches.

* Minor changes to test

* Skip end of period at fixed multiple of delta.
Improved documentation.

* Take code owner for sun.sun (home-assistant#23877)

* Take code owner

* Post hassfest

* Fix homekit test assert no messages (home-assistant#23856)

* Update sensor.py

* Fix auto discovery if the monitor condition (home-assistant#23880)

* Fix auto discovery if the monitor condition (home-assistant#23880)

* Restructure device tracker (home-assistant#23862)

* Restructure device tracker

* Docstyle

* Fix typing

* Lint

* Lint

* Fix tests

* Update Pynetgear to v0.6.1 (home-assistant#23886)

* Update Pynetgear to v0.6.1

* update pynetgear to v0.6.1

* Fix PS4 blocking startup (home-assistant#23893)

* Fix PS4 blocking startup (home-assistant#23893)

* Fix Hassio-version for Azure Pipelines (home-assistant#23895)

* Update azure-pipelines.yml for Azure Pipelines

* Fix ecobee 3 homekit pairing (home-assistant#23882)

* Enable Homematic IP cloud climate device with HeatingThermostat only (home-assistant#23776)

* Enable climate device with HeatingThermostat only

* Fix after review

* Load HA core config from storage (home-assistant#23872)

* Load HA core config from storage

* Tweak

* Lint, review comments

* Fix test

* Add tests

* Lint

* Address comments

* Netatmo, handle offline device (home-assistant#23907)

* Netatmo, handle offline device

* style

* [WIP] Simplify zeroconf (home-assistant#23890)

* Simplify zeroconf

* Remove unused imports

* Update Honeywell warning (home-assistant#23913)

* Add @Kane610 to zeroconf CODEOWNERS

* Version bump insteonplm to 0.15.4 (home-assistant#23918)

* Version bump insteonplm to 0.15.4

* Package-level version change

* Switch media player to SWITCH type (home-assistant#23914)

MEDIA device type is being rejected by google now.

* Fix bug when IQVIA API fails to return data (home-assistant#23916)

* Fix bug when IQVIA API fails to return data

* Updated requirements

* Fixed tests

* Linting

* Removed impossible case

* Removed extraneous comment

* Fix icons for homekit_controller sensors (home-assistant#23921)

* Fix additional IQVIA data bug (home-assistant#23931)

* Fix problem with cameras that don't support time (home-assistant#23924)

Some onvif cameras don't support Date management. In that case None is returned and script crashes when trying to obtain date

* Have homekit_controller use device registry (home-assistant#23874)

* Add device registry support

* HK doesn't use mac as a connection id

* Fix for non existing Daikin zones (home-assistant#23792)

* Fix fan rates for Daikin (home-assistant#23860)

* Fix auto version update Hass.io (home-assistant#23935)

* Added support for sensor other than temperature and humidity (home-assistant#23863)

* Added support for sensor other than temperature and humidity

* fixed lint errors

* fixed minor issues pointed out by @fabaff

* Bump pytraccar (home-assistant#23939)

* Add unit of measurement to Tautulli sensor (home-assistant#23873)

Adds unit of measurement ("Watching") to sensor, so it can be graphed properly.
This is the same unit of measurement as the Plex sensor.

* Setup integration dependencies before loading it (home-assistant#23957)

* Update requests to 2.22.0 (home-assistant#23958)

* show battery level also when vacuum has no map support (home-assistant#23947)

* Upate xiaomi voltage parser, fix home-assistant#23898 (home-assistant#23962)

* Doorbird Refactor (home-assistant#23892)

* Remove schedule management. Allow custom HTTP events defined in the configuration

* Consolidate doorbird request handling.  Make token a per device configuration item.

* Lint fixes

* Do not register dummy listener

* Remove punctuation

* upgrade broadlink library (home-assistant#23966)

* Make Discord payload data key not required (home-assistant#23964)

* Update russound_rio dependency to version 0.1.7 (home-assistant#23973)

v0.1.7 fixes async import issues in python 3.7+

* Fixes issue with multiple alerts (home-assistant#23945)

* Fixes issue with multiple alerts

* Adds missing new line

* Remove whitespace

* Adding Watson TTS (IBM Cloud) (home-assistant#23299)

* Adding Watson TTS (IBM Cloud)

* Code review changes

* Entity Cleanup on Z-Wave node removal (home-assistant#23633)

* Initial groundwork for entity cleanup on node removal

* Connect node_removed to dispatcher

* update docstring

* Add node_removal test

* Address review comments

* Use hass.add_job instead of run_coroutine_threadsafe

* Use the timezone defined in Home Assistant when making the API call (home-assistant#23284)

* Use HA defined timezone

* Cleanup

* Use homeassistant.util.dt.now to get the correct time.

* Update homeassistant/components/vasttrafik/sensor.py

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Updated non-blocking timout to 10 seconds for fixing timeout issues. (home-assistant#23930)

* Updated non-blocking timout to 10 seconds for fixing timeout issues.

* Added failed bridge fixture for faster unit tests.

* Delete devices / entities when we remove a config entry. (home-assistant#23983)

* Remove device when last config entry removed

* Remove entities when config entry removed

* Update tests to use new behaviour

* Better handle file not found when loading YAML (home-assistant#23908)

* Better handle file not found

* Lint

* daikin version bump (home-assistant#23991)

* Bump loopenergy library version - catches runtime exception. (home-assistant#23989)

* Bump loopenergy library version - catches runtime exception.

* Update requirements_all.

* Update owner frontend integrations [skip ci] (home-assistant#24001)

* Axis IO-port support (home-assistant#23312)

Support digital inputs and supervised inputs, digital outputs and relays

* Fire event when core config is updated (home-assistant#23922)

* Fire event when core config is updated

* Update CODEOWNERS (home-assistant#24015)

* Add websocket API for updating core config (home-assistant#24009)

* Add websocket API for updating core config

* Add geniushub sensors for issues (home-assistant#23976)

* Inital commit

* delint - use new string formatting

* Fix iterating over NoneType exception (home-assistant#23648)

* Fix iterating over NoneType exception

When self._dark_sky is None, don't try to return self._dark_sky.units

* Fix wrong check

* bump geniushub-client to 0.4.9 (home-assistant#24022)

* Zeroconf discovery for config entries (home-assistant#23919)

* Proof of concept

* Follow comments

* Fix line length and bad imports

* Move imports to top

* Exception handling for unicode decoding
Create debug print for new service types
Add empty test files

* First try at a test

* Add type and name to service info
Fix static check

* Add aiozeroconf to test dependencies

* Improve yeelight imports (home-assistant#24020)

* Improve yeelight imports

* Move import on top

* Fix lint

* Downgrade Hue warning (home-assistant#24033)

* Ambiclimate test, mock (home-assistant#24034)

* Upgrade Mastodon.py to 1.4.2 (home-assistant#24004)

* Upgrade Mastodon.py to 1.4.2

* Update

* Require core config detection to be triggerd manually (home-assistant#24019)

* Detect core config

* Remove elevation

* Lint

* Lint

* Fix type

* Don't pass in loop (home-assistant#23984)

* Don't pass in loop

* Revert some changes

* Lint + Axis revert

* reinstate loop

* Fix a test

* Set loop

* Update camera.py

* Lint

* Update ambiclimate library (home-assistant#24049)

* ESPHome component to use zeroconf discovery (home-assistant#24043)

* Move ESPHome component to use zeroconf discovery

* Remove esphome from discovery component

* [skip ci] Update azure-pipelines.yml for Azure Pipelines

* Add support for available property for broadlink (home-assistant#23981)

* Add support for available property for broadlink

* Broadlink, except oserror

* Broadlink, except oserror

* Always update all Plex client types (home-assistant#24038)

* Convert stream source to method (home-assistant#23905)

* Convert stream source to method

* Use async with

* Fix entity id naming when not using first install (home-assistant#23606)

* Fix entity id naming when not using first install

Currently, the verisure component will use the alias of the first
installation to decide entity id of the alarm_control_panel even though
a different installation is configured through a specified giid. This
fixes that

* Fixed pulled request review comments

* Remove trailing whitespace

* Fix remaining pylint errors

* Updated frontend to 20190523.0

* Update translations

* Daikin airbase beta fixes (home-assistant#24050)

* values are strings not integers

* pydaikin version bump

* Better logging of method used for ADB connection (home-assistant#24037)

* Fix zeroconf sorting (home-assistant#24068)

* Rfxtrx, add data types (home-assistant#24066)

* Rfxtrx, add data types

* fix style

* Update the name of Zestimate sensors (home-assistant#23770)

* Zestimate: fix for issue home-assistant#23757
Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

Also removed MIN_TIME_BETWEEN_UPDATES in
favor of SCAN_INTERVAL per suggestion from
amelchio#9580 on Discord

* Zestimate fix for issue home-assistant#23757

Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

* Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

* moved code fix to the correct function

* removed code change from unique_id function

* Added possibility to define the data type of Homematic (home-assistant#24078)

* Homematic: Added possibility to define the data type for set_device_value

* Fixed coding style

* Fixed variable name

* Add 'adb_response' attribute to Android TV / Fire TV (home-assistant#23960)

* Add 'adb_response' attribute to Android TV / Fire TV

* Use None instead of empty string for empty ADB responses

* Initialize self._adb_response as None, not empty string

* Update the state after sending an ADB command

This ensures that the `'adb_response'` attribute contains the response to the latest command

* Adjust logging (home-assistant#24082)

* Make sure we log full path to debug log

* Make sure we log the exception to debug log

* Fix Hue bridge timeout (home-assistant#24084)

* Change timeout from 5 seconds to 10 seconds
Underpowered platforms timeout during configuration/discovery of a Hue bridge on a new install. Increasing this timeout fixes this.

* MCP23017 (home-assistant#23127)

* Added support for MCP23017 I2C GPIO extender.

* Updated .coveragerc to exclude mcp23017 component from tests.

* Generated CODEOWNERS for mcp23017 usign script.

* Removed .svn folder that had been accidentally uploaded.

* Added link to www.home-assistant.io docs in manifest.json

* Fixed logic error in switch platform.

* Cleaned up code and removed unnecessary should_poll() function.

* Limited the options for pull mode to UP and DOWN

* Fixed line too long in binary sensor.

* Fixed line too long on switch.py

* Changed to setup_platform.

* Reorder constants

* typo for ambiclimate (home-assistant#24083)

* Remove device tracker unnecessary separate except clause (home-assistant#24081)

Handle exception where it can be thrown.

* Refactoring of LCN component (home-assistant#23824)

* Moved helper functions to const.py

* Removed pypck attribute from LcnDevice

* Bump to pypck==0.6.0

* Added myself as a codeowner

* Moved helper functions to helpers.py

* Update code owner for Xiaomi TV (home-assistant#24102)

* Update code owner

* Update CODEOWNERS

* Fix broken blink motion detection (home-assistant#24097)

* Issue home-assistant#23514 - fix invalid hue response (home-assistant#23909)

Based on the discoveries in issue home-assistant#23514, the periodic lack of response from emulated hue was due to an invalid value (null) being returned.

* Config entry device tracker (home-assistant#24040)

* Move zone helpers to zone root

* Add config entry support to device tracker

* Convert Geofency

* Convert GPSLogger

* Track unsub per entry

* Convert locative

* Migrate OwnTracks

* Lint

* location -> latitude, longitude props

* Lint

* lint

* Fix test

* Solax Inverter Sensor Component (home-assistant#22579)

* Solax inverter direct API

* Linter compliance

* lint++

* move api communication to external lib

* lint++

* requirements

* Revert "requirements"

This reverts commit 82a6c0c.

* potentially?

* Addressing review comments

* Also update CODEOWNERS

* Only update sensor state if data has changed

* Bump pyatmo version to 1.12 (home-assistant#24088)

* Set assumed_state property to True. (home-assistant#24118)

* Remove custom entity_id naming (home-assistant#24072)

* Remove custom entity_id naming

* Set entity_ids with 'plex'

* Set name instead of entity_id

* Lint

* Use a name template

* Move imports to top (home-assistant#24108)

* Use name in ESPHome discovery title (home-assistant#24100)

* Use name in ESPHome discovery title

* Add test

* Lint

* Add Remote RPi Component (home-assistant#23518)

* Add Remote RPi Component

* Add Remote RPi Component

* fix imports

* Added support for setup as switch and binary_sensor

* remove pylint error handling

* Changed to domain config

* Changed to domain config

* Changed to domain config

* Changed to domain config

* Update __init__.py

* Update manifest.json

* Update requirements_all.txt

* Update switch.py

* Update binary_sensor.py

* Changed to domain config

* Azure Event Hub history component (home-assistant#23878)

* v1 of Azure Event Hub History component

* updates to EH

* small fix

* small updates and changed requirements_all

* new version of Event Hub component

* redid config to just ask names

* small edit

* latest version of EH component

* updated codeowners

* codeowner fix

* typo in domain

* updates based on reviews.

* using built-in jsonencoder for DT

* delete unused import

* geniushub: fix sensor battery level, and bump client (home-assistant#24123)

* Initial commit

* bump client

* Use importlib metadata to check installed packages (home-assistant#24114)

* Use importlib metadata

* Fix script

* Remove unused import

* Update requirements"

* Avoid useless Sonos state updates (home-assistant#24135)

* Add SSDP integration (home-assistant#24090)

* Add SSDP integration

* Fix tests

* Sort all the things

* Add netdisco to test requirements

* Lovelace: Fire event on save (home-assistant#24104)

* Lovelace: Fire event on save

* Add event to whitelist

* Use central polling to update entities (home-assistant#24059)

* Use central polling to update entities

* Fix for line length

* Remove unnecessary import

* Use interval

* Trigger entity refreshes after commands

* Lint

* Library refactorization of deCONZ (home-assistant#23725)

* Improved sensors

* Lib update signalling

* Replace reason with changed

* Move imports to top of file

* Add support for secondary temperature reported by some Xiaomi devices

* Bump dependency to v59

* Retrieve wire and wireless devices with the SRM device tracker (home-assistant#24117)

* Add station name for creating the unique_id in netatmo platform (home-assistant#24141)

* bump dependency envoy_reader to 0.4 (home-assistant#24145)

* bump envoy_reader version to 0.4

* bump dependency envoy_reader to 0.4

* Don't crash on first EAN without installations (home-assistant#24137)

* Don't crash on first EAN without installations

* Remove duplicated values

* Switch from Exception to persistent notification

* Make pylint happy

chmielowiec added a commit to chmielowiec/home-assistant that referenced this pull request May 28, 2019

Convert stream source to method (home-assistant#23905)
* Convert stream source to method

* Use async with

@balloob balloob referenced this pull request Jun 4, 2019

Merged

0.94.0 #24305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.