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

Add ClickSend "caller" option #20780

Merged
merged 4 commits into from Mar 25, 2019

Conversation

Projects
None yet
7 participants
@fabtesta
Copy link
Contributor

commented Feb 6, 2019

Added optional "caller" parameter to let ClickSend API call be more compliant with some cellular networks that do not allow incoming calls from the same recipient number.
If "caller" is not defined, then the recipient parameter value is used.

Doc PR
home-assistant/home-assistant.io#8831

removed "from" parameter from ClickSend API call
Removed "from" parameter from API call to let ClickSend choose a random number and be more compliant with some cellular networks that do not allow incoming calls from the same recipient number.
@homeassistant

This comment has been minimized.

Copy link

commented Feb 6, 2019

Hi @fabtesta,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@homeassistant homeassistant added cla-signed and removed cla-needed labels Feb 6, 2019

fixed "line too long (94 > 79 characters)" houndci code review
fixed "line too long (94 > 79 characters)" houndci code review

@ghost ghost added the in progress label Feb 6, 2019

@bachya

This comment has been minimized.

Copy link
Contributor

commented Feb 6, 2019

Base this PR upon home-assistant:dev, not home-assistant:master.

@balloob balloob changed the base branch from master to dev Feb 6, 2019

@balloob
Copy link
Member

left a comment

The default logic should still keep using the recipient. Adjust this PR to make it optional.

Added new component optional parameter "caller".
If defined is used to override default logic that uses recipient phone number in "from" API call parameter

@fabaff fabaff changed the title removed "from" parameter from ClickSend API call Removed "from" parameter from ClickSend API call Feb 10, 2019

@fabtesta fabtesta changed the title Removed "from" parameter from ClickSend API call Added new optional configuration parameter "caller" for ClickSend TTS component to be used instead of "recipient" in API calls Feb 19, 2019

@MartinHjelmare MartinHjelmare changed the title Added new optional configuration parameter "caller" for ClickSend TTS component to be used instead of "recipient" in API calls Add ClickSend "caller" option Mar 5, 2019

@MartinHjelmare

This comment has been minimized.

Copy link
Member

commented Mar 5, 2019

Please update the PR description to follow the change in PR direction.

@MartinHjelmare

This comment has been minimized.

Copy link
Member

commented Mar 5, 2019

Can be merged when PR description is updated and a docs PR is linked in the PR description.

@robbiet480 robbiet480 merged commit 324a7c7 into home-assistant:dev Mar 25, 2019

4 checks passed

Hound No violations found. Woof!
cla-bot Everyone involved has signed the CLA
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls First build on patch-1 at 92.764%
Details

@ghost ghost removed the in progress label Mar 25, 2019

giefca added a commit to giefca/home-assistant that referenced this pull request Mar 29, 2019

Update (#5)
* Bumped version to 0.89.0b0

* Version bump to 0.90.0b0

* Remove UTF8 decoding for Waze (home-assistant#22020)

Removes the UFT8 decoding for the Waze sensor, which broke in 0.89

Fixes home-assistant#21739

* Bring back the boiler status (home-assistant#22021)

* Update additional platforms to use new MQTT message callback (home-assistant#22030)

* Move additional platforms to new MQTT callback

* Fix automation.mqtt

* Fix lifx light async error (home-assistant#22031)

* Fix Google Assistant User with Cloud (home-assistant#22042)

* Fix Google Assistant User with Cloud

* Fix User Agent ID

* respell

* Fix object

* Fix tests

* fix lint

* Fix lint

* Bumped version to 0.90.0b1

* Updated frontend to 20190315.0

* Mobile App: Require encryption for registrations that support it (home-assistant#21852)

## Description:

**Related issue (if applicable):** fixes home-assistant#21758

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Mobile App: Support rendering multiple templates at once (home-assistant#21851)

* Support rendering multiple templates at once

* Only catch TemplateError and dont log the error

* Mobile App: Update Location schema updates & device ID generation (home-assistant#21849)

* Update location schema

* Generate a random device ID at registration time for later use with device_tracker.see

* Remove host name from device_tracker.see payload

* Drop consider_home from the payload

* Remove stale consider_home in schema

* Remove source_type

* Mobile App: Register devices into the registry (home-assistant#21856)

* Register devices into the registry

* Switch to device ID instead of webhook ID

* Rearchitect mobile_app to support config entries

* Kill DATA_REGISTRATIONS by migrating registrations into config entries

* Fix tests

* Improve how we get the config_entry_id

* Remove single_instance_allowed

* Simplify setup_registration

* Move webhook registering functions into __init__.py since they are only ever used once

* Kill get_registration websocket command

* Support description_placeholders in async_abort

* Add link to mobile_app implementing apps in abort dialog

* Store config entry and device registry entry in hass.data instead of looking it up

* Add testing to ensure that the config entry is created at registration

* Fix busted async_abort test

* Remove unnecessary check for entry is None

* Mobile App: Sensors (home-assistant#21854)

## Description:

**Related issue (if applicable):** fixes home-assistant#21782

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Bump androidtv to 0.0.11 (home-assistant#22025)

* Mobile App: Enable loading via discovery (surprise inside!) (home-assistant#22027)

![](http://funpeep.com/wp-content/uploads/2014/04/Cute-White-Cat-Wallpaper.jpg)

* Mobile App: Discovery to default configuration.yaml, zeroconf to default_config (home-assistant#22028)

* Move discovery into default configuration.yaml

* Add zeroconf to default_config

* Mobile App: Expose Cloud Remote UI FQDN in registration response (home-assistant#22055)

* Add a callback to get the cloud remote UI FQDN

* Expose Cloud Remote UI FQDN in the registration response

* Return a URL instead of FQDN

* Return config entry ID after creation (home-assistant#22060)

* Correct context (home-assistant#22061)

* Binary Sensor for Remote UI & Fix timezone (home-assistant#22076)

* Binary Sensor for Remote UI

* Fix lint

* Revert make hass public

* Add tests

* Fix test

* Fix more test

* Bumped version to 0.90.0b2

* Fix func

* Updated frontend to 20190315.1

* Bump androidtv to 0.0.12 (home-assistant#22072)

* Prevent cloud remote UI when using 127.0.0.1 as trusted network (home-assistant#22093)

* Prevent cloud remote UI when using trusted networks

* Limit to 127.0.0.1 trusted network

* Update error msg

* Disable ipv6 loopback

* Beta Fix: FFMPEG and Stream component (home-assistant#22091)

* remove stream_source from ffmpeg and onvif and add to generic ip cam

* fix tests

* Bumped version to 0.90.0b3

* Updated frontend to 20190316.0

* delete previously removed service option from services yaml (home-assistant#22123)

* Bumped version to 0.90.0b4

* Updated frontend to 20190318.0

* Remove hass.config from aws_lambda notify payload (home-assistant#22125)

* Allow non-admins to listen to certain events (home-assistant#22137)

* Bump tado version (home-assistant#22145)

* Bump python-tado, new API endpoint

* Change references of old API endpoint to new

* Update REQUIREMENTS

* Fix resetting access token on streams with keepalive (home-assistant#22148)

* Remove config check over supervisor (home-assistant#22156)

* Remove config check over supervisor

* Fix lint

* Fix tests

* Upgrade toonapilib to 3.2.2 + lower interval (home-assistant#22160)

* Bumped version to 0.90.0b5

* Updated frontend to 20190319.0

* bump total_connect_client to 0.24 (home-assistant#22166)

* Update Hass-NabuCasa 0.8 (home-assistant#22177)

* Always load Hass.io component on Hass.io (home-assistant#22185)

* Always load Hass.io component on Hass.io

* Lint

* Lint

* Bumped version to 0.90.0b6

* Updated frontend to 20190319.1

* Bumped version to 0.90.0b7

* Updated frontend to 20190320.0

* Fixed typing errors (home-assistant#22207)

* Bumped version to 0.90.0

* Updated frontend to 20190321.0

* Fix ZHA force polled entities. (home-assistant#22222)

## Description:
Fix "force_polled" ZHA entities.

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23

* Bump total-connect-client to 0.25, fixing issue with Total Connect (home-assistant#22230)

* Bump total-connect-client to 0.25

* Bump version in requirements_all.txt

* Bumped version to 0.90.1

* Stream fixes (home-assistant#22238)

* fix issues with out of order packets, and empty first packet on some IP camera models

* do not skip the first packet

* Allow on/off on tado climate component. (home-assistant#22242)

* Allow on/off on tado climate component. Bump python-tado version. Patch from @wmalgadey

* Revert wrongly change in tado device tracker

* Fix validate webhook requirements (home-assistant#22248)

* Update Hass-NabuCasa 0.9 (home-assistant#22258)

* Lint

* Update hass-nabucasa 0.10 (home-assistant#22267)

* Remove occupancy as it is not available in API (home-assistant#22320)

* Update file header (home-assistant#22318)

* Update file header

* Fix indent

* Fix lint issue

* Consolidate more platforms (home-assistant#22308)

* Consolidate final platforms

* Fix some tests

* Fix more tests

* Fix more tests

* fix where PLATFORM_SCHEMA gets pulled from (home-assistant#22334)

* show which component is causing translation errors (home-assistant#22340)

* Define GTFS sensor as a timestamp device class (home-assistant#21053)

* Move yeelight into component (home-assistant#21593)

* Axis config flow (home-assistant#18543)

* Initial draft

* Add tests for init
Fix hound comments

* Add tests for device
Change parameter handling to make device easier to test

* Remove superfluous functionality per Martins request

* Fix hound comments

* Embedded platforms

* Fix device import

* Config flow retry

* Options default values will be set automatically to options in config entry before component can be used

* Clean up init
Add populate options
Fix small issues in config flow
Add tests covering init

* Improve device tests

* Add config flow tests

* Fix hound comments

* Rebase miss

* Initial tests for binary sensors

* Clean up
More binary sensor tests

* Hound comments

* Add camera tests

* Fix initial state of sensors

* Bump dependency to v17

* Fix pylint and flake8

* Fix comments

* Fix pressure in dark sky and openweathermap and add pressure utility (home-assistant#21210)

* Fix xiaomi aqara cube with lumi.acpartner.v3 gateway (home-assistant#22130)

* Support deCONZ library with exception handling (home-assistant#21952)

* Do not warn when creating an empty database (home-assistant#22343)

* Add color support to Philips Moonlight (home-assistant#22204)

* Add support for the power socket of the Xiaomi AC Partner V3 (home-assistant#22205)

* Fix ps4 no creds with additional device (home-assistant#22300)

* Fix no creds with additional device.

* Update config_flow.py

* Prefer TCP for RTSP streams (home-assistant#22338)

## Description:

For RTSP streams, set the `prefer_tcp` FFMPEG flag.  This should resolve some of the "green feed" issues that some users are reporting, likely due to packets being lost over UDP on their network.

Resources: [FFMPEG protocols documentation](https://ffmpeg.org/ffmpeg-protocols.html#rtsp)

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Set Onkyo reset log to debug instead of info (home-assistant#22369)

Onkyo logs this message somewhat frequently, and its spammy, so lets make it a debug message instead of info. 

See also: home-assistant#20081

* Upgrade netatmo smart_home module (home-assistant#22365)

* Fix the crash due to absence of the "default_home" in HomeData from pyatmo (netatmo/climate) (home-assistant#22363)

* Add support for 'image' media type (home-assistant#22353)

* Warn user about HTML5 GCM deprecation (home-assistant#22351)

* Warn user about GCM deprecation

* Fixing hound

* Fixing typo

* Fixing Travis fail

* Turn Panasonic Viera TV on without WOL (home-assistant#22084)

* Turn the TV on via remote

* Turn the TV on via remote

* Use turn_on() from panasonic-viera==0.3.2

* make power option configurable

* add app_power as argument

* formatting

* Properly connect sensors to hub (home-assistant#21414)

* Properly connect sensors to hub
Refs home-assistant#20958

* Don't connect (merge) with main device

* Provide manufacturer

* Linting

* Do connect upnp-sensors to main device

* Linting

* Fix requirements_all.txt

* Add support for Tfiac Climate component (home-assistant#21823)

## Description:

Add support for AC-models that follows the Tfiac protocol. Built together with @mellado.

**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#8910

## Example entry for `configuration.yaml` (if applicable):
```yaml
climate:
   platform: tfiac
   host: 192.168.10.26
```

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:
  - [x] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)

If the code communicates with devices, web services, or third-party tools:
  - [x] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).
  - [x] New dependencies are only imported inside functions that use them ([example][ex-import]).
  - [x] New or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.
  - [x] New files were added to `.coveragerc`.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23


Co-authored-by: Robbie Trencheny <me@robbiet.us>

* Add aws component and consolidate aws notify platform  (home-assistant#22240)

* Add aws component

* Move notify config under aws component

* Add basic tests for aws component

* Add deprecated warning for notify.aws_*

* Add more tests

* Check if mac is set when more than 2 gateways (home-assistant#21834)

* Check if mac is set when more than 2 gateways

When more than 2 gateways mac is required for each of them. Now voluptuous will require it.

* fix line length

* remove trailing whitespace

* Make it more readable

* Add 'method' parameter to forgiving_round method (home-assistant#21708)

* Add 'method' parameter to forgiving_round method

Fixes home-assistant#21707

* fix rounding behavior in round() filter

* add test cases for new rounding behaviour

* Expose detailed Ecobee equipment status (home-assistant#20767)

* ecobee: expose detailed equipment status

* Fix home-assistant#18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix

* fix docstring and lint issue

* Revert "fix docstring and lint issue"

This reverts commit d3a645f.

* Revert "Fix home-assistant#18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix"

This reverts commit bfd9055.

* Add ClickSend "caller" option (home-assistant#20780)

* removed "from" parameter from ClickSend API call

Removed "from" parameter from API call to let ClickSend choose a random number and be more compliant with some cellular networks that do not allow incoming calls from the same recipient number.

* fixed "line too long (94 > 79 characters)" houndci code review

fixed "line too long (94 > 79 characters)" houndci code review

* Added new component optional parameter "caller".
If defined is used to override default logic that uses recipient phone number in "from" API call parameter

* Removed default value for CALLER parameter. If not defined then will take the RECIPIENT value.

* Give HomeKit locks better names by default (home-assistant#22333)

## Description:

This is a follow up to home-assistant#22171. There we set the name of an entity based on the `accessory-information` homekit service, rather than using the zeroconf/avahi name metadata. Unfortunately Lock also sets its name from zeroconf directly, rather than picking it up from the base class. This test updates it to be like the other homekit entities and use the base class.

(This is from my ongoing homekit_controller configentry branch).

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Improve yeelight component (home-assistant#22347)

* Improve PS4 media art fetching and config flow (home-assistant#22167)

* improved config flow

* Added errors, docs url

* Added errors, docs url

* Added manual config mode

* Add tests for manual/auto host input

* fix inline docs

* fix inline docs

* Changed region list

* Added deprecated region message

* removed DEFAULT_REGION

* Added close method

* Fixes

* Update const.py

* Update const.py

* Update const.py

* Update test_config_flow.py

* Added invalid pin errors

* Update strings.json

* Update strings.json

* bump pyps4 to 0.5.0

* Bump pyps4 0.5.0

* Bump pyps4 to 0.5.0

* test fixes

* pylint

* Change error reference

* remove pin messages

* remove pin messages

* Update en.json

* remove pin tests

* fix tests

* update vol

* Vol fix

* Update config_flow.py

* Add migration for v1 entry

* lint

* fixes

* typo

* fix

* Update config_flow.py

* Fix vol

* Executor job for io method.

* Update __init__.py

* blank line

* Update __init__.py

* Update tests/components/ps4/test_config_flow.py

Co-Authored-By: ktnrg45 <38207570+ktnrg45@users.noreply.github.com>

* Allow for custom turn on/off commands (home-assistant#22354)

* Remove unused const (home-assistant#22383)

* Update hass-nabucasa & fix state (home-assistant#22385)

* Update hass-nabucasa & fix state

* Fix lint

* Frontend indicate require admin (home-assistant#22272)

* Allow panels to indicate they are meant for admins

* Panels to indicate when they require admin access

* Do not return admin-only panels to non-admin users

* Fix flake8

* Fix TpLink Device Tracker initialize error (home-assistant#22349)

Catch RequestException instead of ConnectionError
In some cases TpLinkDeviceScanner throws various successors of
RequestException. They should be caught.

* Add traccar events (home-assistant#22348)

* Add import_events(), small refactoring, traccar_id

I isolated the code that imports traccar tracking data and added a new function that imports the traccar events to make them run in parallel and reduce delay. The events that are imported in hass, will be fired with the prefix "traccar_". Furthermore a traccar_id is now imported in hass entities, useful for matching the traccar hass entities with the traccar hass events in the most accurate way.

* bump pytraccar version

* Code format fix

* Code format fix 2

* Code format fix 3

* Implement requested changes

* Add new traccar dependency

* Fix line too long

* Update device_tracker.py

* Update requirements_all.txt

* Update python yeelight and add nightlight mode sensor (home-assistant#22345)

* updated pydaikin (home-assistant#22382)

* Support for Plex sensor with enforced SSL (home-assistant#21432)

* Search GTFS departures across midnight (home-assistant#20992)

* remove config sections from hass.config.components (home-assistant#22370)

* remove config sections from hass.config.components

* fix tests

* Update ring_doorbell to 0.2.3 (home-assistant#22395)

* Fix unavailable state for homekit locks and covers (home-assistant#22390)

* Add infer_arming_state option to ness alarm (home-assistant#22379)

* Add infer_arming_state option to ness alarm

* actually use config value

* 🤦‍♂️

* deCONZ support Xiaomi vibration sensor (home-assistant#22366)

* Martin pointed out in previous PR that no ending '.' in logging

* Add support for Xiaomi vibration sensor

* Fix data_key of the xiaomi_aqara cover for LAN protocol v2 (home-assistant#22358)

* Remove get_serial helper that is no longer needed. (home-assistant#22368)

* Set default parallel_update value should base on async_update (home-assistant#22149)

* Set default parallel_update value should base on async_update

* Set default parallel_update value should base on async_update

* Delay the parallel_update_semaphore creation

* Remove outdated comment

* reset unsub to None on timeout (home-assistant#22404)

* Camera Preferences + Preload Stream (home-assistant#22339)

* initial commit for camera preferences and preload stream

* cleanup and add tests

* respect camera preferences on each request stream call

* return the new prefs after update

* Move core stuff into Home Assistant integration (home-assistant#22407)

* Move core stuff into Home Assistant integration

* Lint

* Tibber add support for Watty (home-assistant#22397)

* zha fixes (home-assistant#22381)

* Fix yeelight state update (home-assistant#22373)

* Changed busy error to warning (home-assistant#22398)

* Migrate tts (home-assistant#22403)

* Migrate tts

* Migrate tts tests

* Update requirements

* Fix path to demo mp3

* Enable hass.io panel without ping (home-assistant#22388)

* Enable hass.io panel without ping

* fix tests

* Add missing append (home-assistant#22414)

* Fix ps4 no creds with additional device (home-assistant#22300)

* Fix no creds with additional device.

* Update config_flow.py

* Prefer TCP for RTSP streams (home-assistant#22338)

## Description:

For RTSP streams, set the `prefer_tcp` FFMPEG flag.  This should resolve some of the "green feed" issues that some users are reporting, likely due to packets being lost over UDP on their network.

Resources: [FFMPEG protocols documentation](https://ffmpeg.org/ffmpeg-protocols.html#rtsp)

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Update hass-nabucasa & fix state (home-assistant#22385)

* Update hass-nabucasa & fix state

* Fix lint

* Enable hass.io panel without ping (home-assistant#22388)

* Enable hass.io panel without ping

* fix tests

* reset unsub to None on timeout (home-assistant#22404)

* Bumped version to 0.90.2

* Update translate, fix dev build error (home-assistant#22419)

* Use dispatcher for netgear_lte state updates (home-assistant#22328)

* Use dispatcher for netgear_lte state updates

* Also dispatch unavailable state

* ciscomobilityexpress pypi version update (home-assistant#22431)

* Bump pip

* Bump ciscomobilityexpress to 0.1.4

* Bump pyotgw to 0.4b2 (home-assistant#21973)

* Fix opentherm_gw blocks HA startup when gateway unreachable. (home-assistant#22106)

* Fix TypeError in current_temperature if no temperature is known. (home-assistant#22112)

Don't set opentherm_gw climate temperatures to 0 on init.

* Improve opentherm gw startup (home-assistant#22121)

* Improve fix in c90f0d5 (home-assistant#22106). Schedule connect coroutine directly on the loop rather than waiting for EVENT_HOMEASSISTANT_START.

* Remove unused import.

* Update homeassistant-pyozw to 0.1.3 (home-assistant#22433)

* Adding conf for deep standby, wake and specific source bouquet of Enigma2 (home-assistant#22393)

* - adding deep standby, conf for wake and specify source bouquet

* set defaults to strings

* bump pip

* bump pip

* bump pip

* bump pip

* bump pip

* bump pip

* Fix test name (home-assistant#22421)

* Lower severity level of log messages from http.view (home-assistant#21091)

* Update ha-ffmpeg 2.0 (home-assistant#22427)

* Add myself as codeowner for yeelight component (home-assistant#22438)

* Update ZHA component CODEOWNERS (home-assistant#22452)

* Add support for yeelight ceiling ambilight (home-assistant#22346)

* Bootstrap to start registry loading early (home-assistant#22321)

* Registries store directly in data on loading.

* Loading registries concurent with stage 1.

* Removed comments

* Axis devices support device registry (home-assistant#22367)

* Add support for device registry

* Fix test

* Use voluptuous error string for websocket validation error (home-assistant#21883)

* use voluptuous error string to websocket validation error

* added exception logging to websocket error

* add detailed message to websocket validation error

* add error message to websocket validation error

* Add humanize error for websocket invalid vol error

* Add humanize error for websocket invalid vol error

* Add humanize error for websocket invalid vol error

* Add hourly forecasts to Dark Sky (home-assistant#21820)

* Add switches to control Daikin Airbase zones (home-assistant#22417)

* initial AirBase zone support

* fix zone name

* version bump pydaikin

* don't use get()

* better algorithm for computing unique_id (home-assistant#22389)

* Solaredge new sensors (home-assistant#21047)

* Remove unused hass parameter for SolarEdgeData

* Add factory to create different types of sensors
Rename SolarEdgeSensor to SolarEdgeOverviewSensor
Rename SolarEdgeData to SolarEdgeOverviewDataService
Remove unused hass parameter in SolarEdgeOverviewDataService

* Add SolarEdgeDetailsDataService to retrieve details data
Add SolarEdgeDetailsSensor to report details data
Add abstract class SolarEdgeSensor
Add details sensor types

* Combine multiple details sensor into one sensor with attributes

* Fix pylint and flake8 errors

* Resolve conflict with solaredge component update

* Add SolarEdgeInventoryDataService to retrieve inventory information
Add SolarEdgeInventorySensor to view inventory information
Add inverters to monitored_conditions

* Fix pylint and flake8 errors

* Add additional monitored variables for solaredge

* Add new sensors to solaredge component

* Add SolarEdgePowerFlowDataService
Add SolarEdgePowerFlowSensor
Add new monitored_conditions for power consumption and grid, load and
solar power production/consumption

* Set entity_id for each sensor based on platform and sensor type

* Fix flake8 and pylint errors

* Add check for connections in return data

* Fix pylint and flake8 errors

* Renamed state_attributes to device_state_attributes
Moved request import to top

* Remove explicit definition of entity_id

* Fix pylint and flake8 errors

* Add check for None before adding sensor

* Update SolarEdgeSensorFactory with initial dict which maps sensor_key to
entity class and data service

* Update attribute values to snakecase
Added stingcase as requirement

* Update requirements_all.txt to include stringcase for solaredge

* Update some initial values for data and unit_of_measurement
Update sensor factory

* Fix aws.notify platform schema (home-assistant#22374)

* Fix aws component notify platform schema

* Address code review comment

* Do not allow load aws.notify from notify component

* Revert unrelated translation update

* Review comment

* Do data extraction in sensors (home-assistant#22444)

* Do data extraction in sensors

* Hopefully fix lint

* Remove homekit_controller duplicate legacy pairing loader code (home-assistant#22442)

* Cache GTFS metadata and expose utility attributes (breaking change) (home-assistant#20966)

## Description:
Current sensor updates run 7 additional SQLite database queries to populate attributes, on top of the bus schedule queries themselves. Double that if you have two sensors. That leads to a lot of slowdowns for everything else when using an SD card!

Considering that some data never changes (agency, routes...) and that others like departure times are good until invalidated, let's fetch such metadata at first then only when relevant changes do occur.

**Breaking Change:**
GTFS sensor attributes are now named using the standard snake_case format.

### Work performed:
- All metadata queries are now cached.
- Metadata queries are now all regrouped in the `update()` method.
- Attributes assembling is now done in ~~`device_state_attributes()` where it belongs.~~ in a utility method called from `update()`, for code clarity and since there is potential I/O from SQLAlchemy.
- As a bonus, many metadata entries with cryptic values have complementary entries added that provide easier to use data:
	- .\* Stop Drop Off Type: .\* Stop Drop Off Type **State** -> (string, unknown)
	- .\* Stop Pickup Type: .\* Stop Pickup Type **State** -> (string, unknown)
	- .\* Stop Timepoint: .\* Stop Timepoint **Exact** -> boolean
	- .\* Station Location Type: .\* Station Location Type **Name** -> string
	- .\* Wheelchair Boarding: .\* Wheelchair Boarding **Available** -> (boolean, unknown)
	- Route Type: Route Type **Name** (string)
	- Trip Bikes Allowed: Trip Bikes Allowed **State** -> (boolean, unknown)
	- Trip Wheelchair Access: Trip Wheelchair Access **Available** -> (boolean, unknown)
- Attribute names are now using snake_case.
- Added type hints.

**Related issue (if applicable):** fixes home-assistant#21222

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

* Modify check for ADB public key (home-assistant#22378)

* Remove check for public key

* Remove has_adb_files, directly call cv.isfile

* Check for missing adbkey.pub, create dummy if not found

* Reorder imports

* Bumped androidtv library version, deactivated pubkey test

* Code works without pubkey, removed function

* Removed "import os", not needed anymore

* Bump library version

* Centralize all usages of `host` as a configuration param to the constant CONF_HOST (home-assistant#22458)

* Centralize all usages of  as a configuration param to the constant CONF_HOST

* Clean up test

* Don't return cover position when not supported (home-assistant#22484)

* Targeted ZHA permit joins. (home-assistant#22482)

* Targeted ZHA permit service.

* Convert IEEE string to EUI64 usiv vol schema.

* Update test units.

* Lint.

isort imports.

* Fix auto discovery of yeelights (home-assistant#22481)

* Fix auto discovery of yeelights

* Fix lint

* fix inverse state changes for binary sensors (home-assistant#22479)

* Fix events so they work with multiple devices (home-assistant#22477)

* Improve Sensibo error handling (home-assistant#22475)

* Handle sensibo exception

* improve sensibo

* Add new data fields and bump python-join-api (home-assistant#22472)

* Add new data fields and bump python-join-api

* Update __init__.py

* Bump pypi again for Cisco Mobility Express (home-assistant#22467)

* Fix empty device clId

Fix for fbradyirl/ciscomobilityexpress#13

* Update requirements_all.txt

* Return percentage information in Alexa Smart Home response (home-assistant#22440)

* Move HKDevice into connection (home-assistant#22430)

* Incoming SMS handling for netgear_lte (home-assistant#22402)

* Fire netgear_lte events for incoming SMS

* Add netgear_lte.delete_sms service call

* Fix log statement

* Add services.yaml

* Entur upgrade to v0.2.0: async polling, number of departures, omit non boarding departures (home-assistant#22001)

* The Great Migration

* removed outdated tests

* Upgraded enturclient to v0.2.0
- client has gone async
- configurable if non boarding departures should be omitted from result
- configurable how many departures should be shown
- more clear which attributes are included and when

* reduced nesting and clearing of attributes

* Removed test data

* ensure attribution and stop id in attributes

* docstring fixes

* fix rebase errors
went a bit too fast on continue on one of the conflicts..

* fix test requirements comment from gen

* Mopar split (home-assistant#21526)

* Split out mopar into a component and sensor platform

* Add the mopar switch platform

* Add the mopar lock platform

* Clean up and bump version

* Update per review

* Re-add service to trigger horn

* Clean up again

* Don't call async from sync context

* Lint

* Implement changes from review

* Lint

* A little more clean up

* Fix too-abrubt SimpliSafe data refresh termination on error (home-assistant#22466)

* Fix syntax error

* Great migration notify (home-assistant#22406)

* Move notify platforms into components

* Move notify tests

* Fix notify tests

* More fixes

* Update requirements

* Update .coveragerc

* Run gen reqs

* Print error instead of warning for custom platforms in legacy format (home-assistant#22486)

* Legacy platform format prints error

* Enforce no partial overlays

* Add game and app media types (home-assistant#22459)

* Added game and app media types

* Changed media type to game from music

* Removed app type as it is not used yet

* Updated frontend to 20190327.0

* Update translations

* Stream Record Service (home-assistant#22456)

* Initial commit of record service for live streams

* fix lint

* update service descriptions

* add tests

* fix lint

* Add trusted_users in trusted networks auth provider (home-assistant#22478)

* Version bump to 0.92.0dev0

* Fix YAML

* Fix dev branch (home-assistant#22493)

* A very basic Circleci setup (home-assistant#22503)

* Add circleci support

* Add buildpack-deps

* Install libudev-dev

* sudo

* always run test

* Add test report

* no sugar

* quite pytest

* better junit test result

* Add $CODE_COVERAGE env var

* Fix Circleci config (home-assistant#22509)

* Add libav depends on circleci

* tweak circleci config

* Remove botocore dependency from credstash script (home-assistant#22511)

* Remove botocore dependency from credstash script

* Update requirements_all.txt

* Update pylintrc

* Update credstash.py

* Add LCN binary_sensor component (home-assistant#22341)

* Fix lint on dev (home-assistant#22512)

## Description:

Fix a lint issue in credstash script.


**Related issue (if applicable):** fixes #<home-assistant issue number goes here>

**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

## Example entry for `configuration.yaml` (if applicable):
```yaml

```

## Checklist:
  - [ ] The code change is tested and works locally.
  - [ ] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [ ] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:
  - [ ] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)

If the code communicates with devices, web services, or third-party tools:
  - [ ] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).
  - [ ] New dependencies are only imported inside functions that use them ([example][ex-import]).
  - [ ] New or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.
  - [ ] New files were added to `.coveragerc`.

If the code does not interact with devices:
  - [ ] Tests have been added to verify that the new code works.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23

* Add HEOS media player component (home-assistant#21721)

## Description:
Denon HEOS media player.

**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#8848

## Example entry for `configuration.yaml` (if applicable):
```yaml
heos:
  host: HEOS-1                              
```

## Checklist:
  - [X] The code change is tested and works locally.
  - [X] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [X] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:
  - [X] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)

If the code communicates with devices, web services, or third-party tools:
  - [X] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).
  - [X] New dependencies are only imported inside functions that use them ([example][ex-import]).
  - [X] New or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.
  - [X] New files were added to `.coveragerc`.

If the code does not interact with devices:
  - [ ] Tests have been added to verify that the new code works.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23


Co-authored-by: Andrew Sayre <6730289+andrewsayre@users.noreply.github.com>

* Add google calendar max_results config option (home-assistant#21874)

* Added max_results config capability to google calendar (people are creating custom components just to override that)

* Dummy commit

* Dummy commit 2

* Changed to positive_int

* Removed double imports

* Fix .coveragerc from merge/rebase (home-assistant#22516)

* Fix coveragerc

* Fix coveragerc

* Update pyotgw to 0.4b3 (home-assistant#22496)

* Speed up status updating in SimpliSafe (home-assistant#22506)

* Speed up status updating in SimpliSafe

* Linting

* Member comments

@balloob balloob referenced this pull request Apr 3, 2019

Merged

0.91.0 #22688

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.