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 Doorbird events to logbook #30588

Merged
merged 2 commits into from Jan 8, 2020
Merged

Conversation

@oblogic7
Copy link
Contributor

oblogic7 commented Jan 8, 2020

Description:

Doorbird integration does not use entities since there is not any persistent state to be tracked on the devices. Instead, HA events are fired from webhooks received from each device. This PR adds entries to the logbook when these events are received.

image

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.
  • I have followed the development checklist
@project-bot project-bot bot added this to Needs review in Dev Jan 8, 2020
@project-bot project-bot bot moved this from Needs review to By Code Owner in Dev Jan 8, 2020
@balloob
balloob approved these changes Jan 8, 2020
Dev automation moved this from By Code Owner to Reviewer approved Jan 8, 2020
@balloob balloob merged commit 103d352 into home-assistant:dev Jan 8, 2020
10 checks passed
10 checks passed
CI Build #20200108.42 succeeded
Details
CI (FullCheck Mypy) FullCheck Mypy succeeded
Details
CI (FullCheck Pylint) FullCheck Pylint succeeded
Details
CI (Overview CheckFormat) Overview CheckFormat succeeded
Details
CI (Overview Lint) Overview Lint succeeded
Details
CI (Overview Validate) Overview Validate succeeded
Details
CI (Tests PyTest Python37) Tests PyTest Python37 succeeded
Details
cla-bot Everyone involved has signed the CLA
codecov/patch Coverage not affected when comparing 0e9b414...a59b0c4
Details
codecov/project 94.56% (target 90%)
Details
Dev automation moved this from Reviewer approved to Done Jan 8, 2020
@oblogic7 oblogic7 deleted the oblogic7:doorbird_logbook branch Jan 9, 2020
tiagofreire-pt added a commit to tiagofreire-pt/home-assistant that referenced this pull request Jan 9, 2020
* Fix Huawei LTE error message on service call without URL and routers (home-assistant#30250)

* Bump dependency for HomematicIp cloud (home-assistant#30237)

* Bump dependency for HomematicIp cloud

* Update test_data

* Bump libpurecool to 0.6.0 (home-assistant#30247)

* bump libpurecool to 0.6.0 - fixes home-assistant#26367

* update manifest too

* Huawei LTE: Fix YAML options overriding ones set from GUI (home-assistant#30249)

Closes home-assistant#30221

* Add HmIP-MOD_TM to HomematicIP Cloud (home-assistant#30255)

* Note Huawei LTE notify service change requires restart (home-assistant#30223)

Refs home-assistant#30222

* Bump python-velbus library to 2.0.32 to fix problems with the glaspanels (home-assistant#30257)

* Whitelist Android/iOS auth callbacks (home-assistant#30082)

* Whitelist Android/iOS

* Add iOS alternate flavor URLs

* Update indieauth.py

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

* Bump ring to 0.2.8 to fix Oauth issues (home-assistant#30245)

* Fixing timezone issue which caused wrong selection of data to be used. (home-assistant#30011)

* Bump version 0.103.5

* Refactor ZHA channel logging (home-assistant#30259)

Add channel.id property -- id unique for this the device only.

* [ci skip] Translation update

* Fix ble_tracker randomly pygatt thrown error (home-assistant#28671)

* fix(ble_tracker): catch randomly pygatt thrown error

* fix(ble_tracker): merge except errors

* Fix creating smappee sensors when remote is not active (home-assistant#30270)

* Upgrade rflink to 0.0.50, ignore_devices now supports * and ? anywhere (home-assistant#30268)

https://github.com/aequitas/python-rflink/releases/tag/0.0.50
https://github.com/aequitas/python-rflink/releases/tag/0.0.49
https://github.com/aequitas/python-rflink/releases/tag/0.0.48
https://github.com/aequitas/python-rflink/releases/tag/0.0.47

* [ci skip] Translation update

* Accept homekit_controller pairing codes both with and without dashes (home-assistant#30273)

* Handle MalformedPinError from homekit_python
* Handle both formats of pin codes

* Add homekit_controller service.sensor.smoke (home-assistant#30269)

* Upgrade beautifulsoup4 to 4.8.2 (home-assistant#30274)

* Add custom validator for countries (home-assistant#30280)

* Change default icons for Tesla components (home-assistant#30288)

* Contributing: Add note about feature suggestions and bug tracking (home-assistant#30225)

* Bump ihcsdk to 2.4.0 (home-assistant#30279)

* Update requirements_all.txt

update ihcsdk to version 2.4.0

* Update manifest.json

upgrade to version 2.4.0 of ihcsdk

* Handle wired bug on restart (home-assistant#30276)

* Bump pysmartthings 0.7.0 (home-assistant#30302)

* [ci skip] Translation update

* Ignore google_maps updates when last_seen goes backwards (home-assistant#30178)

* Add GIOS integration (home-assistant#28719)

* Initial commit

* Add gios to requirements

* Add tests

* Update .coveragerc file

* Run gen_requirements_all.py

* Change DEFAULT_SCAN_INTERVAL

* Better strings

* Bump library version

* run script.hassfest

* run isort

* Add icons mapping

* Remove unnecessary f-string

* Remove unnecessary listener

* Refactoring config_flow

* Add unique_id to config entry

* Change AQI states to consts in English

* Remove unused init

* Remove unused exception

* Remove private instance attribute

* Remove overwrite state property

* Fix pylint error

* Add SCAN_INTERVAL for air_quality entity

* Add _abort_if_unique_id_configured()

* Store capabilities and supported features in entity registry, restore registered entities on startup (home-assistant#30094)

* Store capabilities and supported features in entity registry

* Restore states at startup

* Restore non-disabled entities on HA start

* Fix test

* Pass device class from entity platform

* Clean up restored entities from state machine

* Fix Z-Wave test?

* Fix Withings leaking time zone change into other tests (home-assistant#30320)

* Fix Withings leaking time zone change in other tests

* Fix spelling error in code doc

* Add local_ip component (home-assistant#29973)

* Added localip component

* Split config and core logic, and migrate to sensor platform (requested by @MartinHjelmare)
Also allow overriding the sensor name via the config

* Tweak docstring

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

* Initial support for config entries

* Rename localip to local_ip (1/2)

* Rename localip to local_ip (2/2)

* Add test for config_flow

* Split and rename tests

* Remove unneeded code from config_flow

* Implement configuration as config entry import.  Other misc requested changes from code review.

* Fix tests

* minor code review fixes

* remove unneeded code

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

* Update liveboxplay and pyteleloisirs (home-assistant#30093)

* Add homematic host port config for HMIP-only CCUs (home-assistant#30077)

* homematic: Add host port config for HMIP-only CCUs

When adding a host (CCU) to the homematic component currently the hardcoded port 2001 is used to communicate with it.
However that port is only available on the target if the target supports HM (wireless) protocol which is not the case e.g. for
the Hass.io Homematic CCU addon when running in HMIP-only mode with the HMIP-RFUSB stick.

This allows to change the port home assistant uses to talk to the CCU in order to provide services under hte homematic homain, e.g. homematic.set_variable_value

The default value for this option is the old hardcoded value this the change should be backwards compatible with existing configurations.

* Change style of config retrieval

* Bump dependency for HomematicIP Cloud (home-assistant#30319)

* Add support for Somfy RTS power socket and Somfy io Temperature sensor (home-assistant#30053)

* Added support for Somfy RTS wireless power socket and
Somfy Temperature Sensore Thermos Wirefree io

* Added code formatting fixes for commit 5faaf9c

* added support for RollerShutterRTSComponent from Somfy

* Added support for RTS roller shutter in set_cover_position

* Add support for Somfy RTS power socket and Somfy io temperature sensor

* black and isort fixes

* Reduce solaredge logging severity (home-assistant#30305)

* [solaredge] Reduce Severity of Log Line

This log error happens frequently for some sites, but it shouldn't be an error.
It is expected, per the SolarEdge Monitoring API, that some sites do not
support this information, and the expected result is that this would be
empty (see comments on home-assistant#27959).

Fixes home-assistant#27959

* Fix a typo

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

* Remove Amcrest deprecated sensors and switches (home-assistant#30308)

* Add support for Velux garage doors (home-assistant#30214)

* Update manifest.json

* Update cover.py

Add GarageDoor

* Update to pyvlx 0.2.12

* Sort

* Add separate command and state topics for mqtt lock (home-assistant#29808)

* Update lock.py

Allow different command and state topic + different command and state values.

* Formatting updated after black run

* TC updated to reflect different state & cmd values

* Abbreviations for lock states added

* additional non-default state test

* whitespaces fixed

* black formatting run

* Upgrade Sphinx to 2.3.1 (home-assistant#30310)

* Add light support to Velbus integration (home-assistant#30323)

* Add light support to Velbus integration

* Add Velbus light.py to .coveragerc

* Applied black formatting

* Fix luftdaten integration by adding a sensor for pressure at sealevel (home-assistant#30317)

* Simplify Tesla icon get code (home-assistant#30301)

* Simplify icon get code

* Remove extraneous None

* Make the rest of ZHA platforms to use ZHA class registry (home-assistant#30261)

* Refactor ZHA component tests fixtures.

* Add tests for ZHA device discovery.

* Refactor ZHA registry MatchRule.

Allow callables as a matching criteria.
Allow sets for model & manufacturer.

* Minor ZHA class registry refactoring.

Less cluttered strict_matching registrations.

* Add entities only if there are any.

* Migrate rest of ZHA platforms to ZHA registry.

* Pylint fixes.

* Improve Withings tests in different time zone (home-assistant#30326)

* Improve Withings tests in different time zone

* Address code review comment

* Spelling error in code doc

* Migrate dsmr tests from coroutine to async/await (home-assistant#30333)

* Migrate wunderground tests from coroutine to async/await (home-assistant#30330)

* Bump pyps4-2ndscreen to 1.0.4 (home-assistant#30327)

* Bump alarmdecoder to 1.13.9 (home-assistant#30303)

* Migrate python_script tests from coroutine to async/await (home-assistant#30335)

* Migrate api tests from coroutine to async/await (home-assistant#30338)

* Migrate alexa tests from coroutine to async/await (home-assistant#30332)

* Migrate xiaomi_miio tests from coroutine to async/await (home-assistant#30329)

* Migrate emulated_hue tests from coroutine to async/await (home-assistant#30331)

* Migrate webostv to new library and make integration async with callback state updates (home-assistant#29296)

* migrate webostv to new aiopylgtv version of the library and add support
for generic commands, input/button commands, and callback state updates

* update requirements

* cleanup and bump aiopylgtv version

* update webostv unit tests

* make webostv unit tests work with python 3.7

* cleanup for code checks

* cleanup and code review

* make all client request functions coroutines

* make host required for webostv configuration

* remove generic command and button functionality plus related cleanup

* fix previous track function

* update unit tests

* fix imports for unit tests

* update unit test

* further unit test updates

* remove unnecessary setup call in unit tests

* restore previous behaviour with client key config file in hass configuration directory

* Migrate input_* tests from coroutine to async/await (home-assistant#30336)

* [ci skip] Translation update

* Remove use of bin_type in Tesla component (home-assistant#30315)

* Remove use of bin_type

* Convert _unit attribute to units

* Remove unnecessary variable assignment

* Change to using util library convert

* Upgrade youtube_dl to version 2020.01.01 (home-assistant#30341)

* Upgrade zeroconf to 0.24.4 (home-assistant#30347)

* Migrate startca tests from coroutine to async/await (home-assistant#30354)

* Migrate teksavvy tests from coroutine to async/await (home-assistant#30353)

* Migrate timer tests from coroutine to async/await (home-assistant#30352)

* Migrate yr tests from coroutine to async/await (home-assistant#30351)

* Fix media_player example for select_source service (home-assistant#30358)

* Upgrade python_opendata_transport to 0.2.1 (home-assistant#30348)

* Fix HVAC mode for Tesla (home-assistant#30287)

* Fix HVAC mode for Tesla

* Change HVAC_MODE to HEAT_COOL

* Add attributes to fritz device_tracker (home-assistant#30350)

* add attributes to device_tracker

* fix pylint

* requested changes

* docstring updated

* Migrate mailbox tests from coroutine to async/await (home-assistant#30361)

* Migrate hassio tests from coroutine to async/await (home-assistant#30363)

* Migrate websocket_api tests from coroutine to async/await (home-assistant#30364)

* Migrate config tests from coroutine to async/await (home-assistant#30366)

* Migrate counter tests from coroutine to async/await (home-assistant#30368)

* Migrate owntracks tests from coroutine to async/await (home-assistant#30369)

* Migrate no_ip tests from coroutine to async/await (home-assistant#30370)

* Migrate camera tests from coroutine to async/await (home-assistant#30372)

* Migrate cast tests from coroutine to async/await (home-assistant#30374)

* Migrate ffmpeg tests from coroutine to async/await (home-assistant#30375)

* Migrate discovery tests from coroutine to async/await (home-assistant#30376)

* Migrate google_* tests from coroutine to async/await (home-assistant#30377)

* Add charging rate sensor to Tesla (home-assistant#30286)

* Add charging rate sensor to Tesla

* Remove reference to bin_type

* [ci skip] Translation update

* Restore state for Rfxtrx devices (home-assistant#30309)

* Restore state rfxtrx switch

* Restore state RFXtrx lights

* Restore state RFXtrx covers

* Restore comment

* Remove line

* Remove logging

* fix black

* Fix typo

* Remove unnessecary rfxtrx light property def (home-assistant#30397)

* Remove unnecessary string literal concatenations (home-assistant#30360)

* Bump pre-commit to 1.21.0 (home-assistant#30406)

* fix issuecomment-570284682 (home-assistant#30405)

* Migrate local_file tests from coroutine to async/await (home-assistant#30392)

* Migrate fido tests from coroutine to async/await (home-assistant#30391)

* Migrate freedns tests from coroutine to async/await (home-assistant#30390)

* Migrate group tests from coroutine to async/await (home-assistant#30389)

* Migrate generic tests from coroutine to async/await (home-assistant#30388)

* Migrate media_player tests from coroutine to async/await (home-assistant#30387)

* Migrate frontend tests from coroutine to async/await (home-assistant#30386)

* Bump miflora and bluepy (home-assistant#30411)

* Bump env_canada to 0.0.31 (home-assistant#30409)

* Add generic command functionality to denonavr (home-assistant#29295)

* Add generic command functionality to denonavr

* add minimal unit tests for denonavr

* fix import order

* simplify denonavr unit test

* handle domain specific service calls with dispatcher

* update unit tests

* update unit tests

* remove unnecessary return value

* fix handling of mock instances in unit tests

* Add generic command/button functionality to webostv (home-assistant#30379)

* add generic command/button functionality to webostv

* update codeowners

* Axis - Improve tests (home-assistant#30415)

* [ci skip] Translation update

* Cleanup of state handling in webostv (home-assistant#30416)

* cleanup unnecessary manipulation of state variables

* update unit test

* Remove ZHA establish device mappings function (home-assistant#30423)

* remove establish_device_mappings
* inline init

* Implemented media_play & media_pause / push to version 0.7.11 of denonavr (home-assistant#30421)

* Implement media_play & media_pause / push to version 0.7.11 of denonavr

* fix denonavr version in requirements_test_all.txt

* Add RTSP stream support for UVC (Unifi Video Client) integration  (home-assistant#30297)

* Add SUPPORT_STREAM to supported_features.

* Implement stream_source with channel RTSP URIs.

* Add Tests for Stream Support.

* Make stream_source async.

* Removed unused import.

* Re-wrote test to remove warning, and lint error.

* Fix set tilt position (home-assistant#30428)

* Fix number of times seen in debug message (home-assistant#30429)

* Use config entry unique id for deCONZ (home-assistant#30122)

* Use config entry unique id

* Clean up

* Backwards compatiblity note

* Fix some of Balloobs comments

* Bump dependency to v66

* Black somehow missed config flow tests...

* Move set unique ID til after possibility to update existing entry

* Rework FlowManager to use inheritance (home-assistant#30133)

* Pull async_finish_flow/async_create_flow out of ConfigEntries

* Towards refactoring

* mypy fixes

* Mark Flow manager with abc.* annotations

* Flake8 fixes

* Mypy fixes

* Blacken data_entry_flow

* Blacken longer signatures caused by mypy changes

* test fixes

* Test fixes

* Fix typo

* Avoid protected member lint (W0212) in config_entries

* More protected member fixes

* Missing await

* convert to integer if rounding precision is zero (home-assistant#30226)

Convert values to integer if rounding precision is zero. With that a
value which is an integer before filtering can be configured to stay
integer when using precision = 0. This also aligns behavior of filters
to how rounding behaves in tempaltes (homeassistant/helpers/template.py,
function forgiving_round).

* Don't allow badly formed upnp devices to kill auto discovery (home-assistant#30342)

Prevent the following from occurring:

```
2019-12-31 22:38:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 85, in async_init
    return await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 145, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/deconz/config_flow.py", line 182, in async_step_ssdp
    if discovery_info[ssdp.ATTR_UPNP_MANUFACTURER_URL] != DECONZ_MANUFACTURERURL:
KeyError: 'manufacturerURL'
2019-12-31 22:38:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 85, in async_init
    return await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 145, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/deconz/config_flow.py", line 182, in async_step_ssdp
    if discovery_info[ssdp.ATTR_UPNP_MANUFACTURER_URL] != DECONZ_MANUFACTURERURL:
KeyError: 'manufacturerURL'
```

* Mark API key as deprecated (home-assistant#30402)

Service account should be used instead

* Axis - Improve tests based on feedback (home-assistant#30430)

* Use MockConfigEntry, add_to_hass and hass.config_entries.async_setup

* Mock method instead of handling paths

* Update HomeKit position state characteristic for covers (home-assistant#27867)

* HomeKit: update position state characteristic for covers

position state is a mandatory characteristic for HK window coverings

* Test position state characteristic

* Handle telegram event commands with args (home-assistant#30254)

* Handle telegram event commands with args

* Parse message regargless of command

* Lint

* Use multiple assignment

* Various string cleanups (home-assistant#30435)

* Remove some unnecessary string concatenations

* Replace some simple str.formats with f-strings

* Replace some string concatenations with f-strings

* Add KEF speakers integration (home-assistant#28959)

* add KEF speakers platform for the integration

This will work with the KEF LS50 Wireless and KEF LSX speakers.
The development of this code happened on https://github.com/basnijholt/media_player.kef

* rename DATA_KEF -> DOMAIN

* use aiokef v0.2.0 and support LSX and new features

* sort imports

* fix @MartinHjelmare's suggestions

* remove _CONFIGURING

* change STATE_UNKNOWN to None

* use lat and long for unique_id

* bump aiokef to v0.2.2

* use config[ATTR] instead of config.get(ATTR)

* use getmac

* fix case when MAC is None

* use host as instance lifetime id

* fix requirements

* WIP deCONZ - Support Fyrtur/Kadrilj battery sensors (home-assistant#30403)

* Sensor.binary is None means unsupported sensor
* Don't create ordinary sensor on ZHABattery type

* isort homekit (home-assistant#30437)

* Don't expose flows that aren't initialised. (home-assistant#30432)

* Don't expose flows that aren't initialised.

If a flow init does not return immediately then there is a window where our
behaviour is screwy:

 * Can try to configure a flow that isn't ready
 * Can show notifications for discoveries that might yet return an abort

This moves the flow discovery events and notifications to after the flow is
initialised and hides flows that don't have a cur_step from async_progress

* Fix tradfri test

* Black.

* Lint fixes

* Check status field for UPS online binary sensor (home-assistant#30144)

Avoids issue where status was previously reported as offline when
battery was low or UPS was over voltage

* deCONZ - Improve tests based on Martins feedback in Axis integration (home-assistant#30438)

* Bump ring to 0.2.9 (home-assistant#30439)

* Improve tests based on Martins feedback from Axis improve tests (home-assistant#30442)

* Defer homekit_controller initial poll after all entities are created (home-assistant#30355)

* Make sure first poll happens after sub-platforms are loaded and entities are created.

* Function dosn't need to return anything

* Don't forward entry if already forwarded it

* Implement supported locales for Alexa capabilities (home-assistant#30285)

* Implement Alexa capability supported locales.

* Check config for supported locales.

* Removed unused import.

* Applied some potpourri to improve code smell.

* Change supported_locales to set.

* Axis - Remove manual configuration and legacy config file import (home-assistant#30365)

* Remove manual configuration and legacy config file import

* Remove unused imports in tests after rebase

* Add Sentry component (home-assistant#30422)

* Extract Collection helper from Person integration (home-assistant#30313)

* Add CRUD foundation

* Use collection helper in person integration

* Lint/pytest

* Add tests

* Lint

* Create notification

* Fix async call inside sync context (home-assistant#30458)

* Fix async call inside sync context

* Apply black formatting

* Fix counter with empty config (home-assistant#30454)

* Allow all sources and sound modes to be selected in google assistant (home-assistant#30418)

* Simplify media player source list

Google don't need a whitelisted set of modes anymore. So let's just forward any mode that we have.

* Report current mode with the setting name, not a synonym

* Refactor mode generation to support other modes

* Support sound mode as mode as well

* Adjust failing test now with sound modes

* [ci skip] Translation update

* Make Axis integration use config entry unique id (home-assistant#30461)

* Make Axis integration use config entry unique id

* Only return remote UI url if remote UI enabled (home-assistant#30453)

* Allow adding unique device ID to mobile app registration (home-assistant#30457)

* Allow adding unique device ID to mobile app registration

* Remove unknown data

* Better fix

* Bump elgato to 0.2.0 (home-assistant#30485)

* Fix WLED light transition (home-assistant#30490)

* Add unique ID to elgato config entries (home-assistant#30486)

* Bump adguardhome to 0.4.0 (home-assistant#30483)

* Add unique ID to WLED config entries (home-assistant#30480)

* Add unique ID to WLED config entries

* Improve robustness of the tests

* Improve WLED pure white support for RGBW (home-assistant#30477)

* Bump wled to 0.2.1 (home-assistant#30474)

* Bump wled to 0.2.0

* Bump wled to 0.2.1

* Bump twentemilieu to 0.2.0 (home-assistant#30471)

* deCONZ - Allow manual configuration to update existing configuration (home-assistant#30469)

* Allow manual configuration to update existing configuration

* Harmonize tests

* Add Zigbee group binding to ZHA (home-assistant#30433)

* initial group binding work
* add group cluster binding

* Fix timer with empty config (home-assistant#30463)

* Mobile App add device tracker to person registering app (home-assistant#30460)

* support odroid-n2 on release

* bump hassio-builder version

* [ci skip] Translation update

* Axis - Allow manual configuration to update existing configuration (home-assistant#30467)

* Allow manual configuration to update existing configuration

* Harmonize tests

* Understand what Elupus means...

* Add person reload service (home-assistant#30493)

* Add unique id property for Vizio devices so they get added to entity registry (home-assistant#30497)

* add unique id property for Vizio devices so they get added to entity registry

* update requirements

* small change to make code more readable

* update to use f-string for consistency

* fix property name

* set unique_id to none if serial number couldnt be found

* set unique_id to none

* ESN should be globally unique so no device type needed. pyvizio will set ESN to None if ESN is unobtainable

* Restore state helper to work with entity registry restoration (home-assistant#30451)

* Restore state helper to work with entity registry restoratino

* Update restore_state.py

* Be consistent with Home Assistant and Hass.io spelling (home-assistant#30500)

* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling

* Migrate automatic tests from coroutine to async/await (home-assistant#30371)

* Migrate automatic tests from coroutine to async/await

* Remove unneeded side effect

* Replace unittest with asynctest, add additional asserts to tests

* Remove double person data validation (home-assistant#30501)

* Add support for v1 and v2 HomeKit fans. (home-assistant#30503)

* Add support for v1 and v2 HomeKit fans.

* Lint fix

* Preserve new BLE tracker item name if seen before adding discovery (home-assistant#30318)

* Preserve new BLE device name if one seen before the last scan but not on it

* Save an indented else block

* Use async_fire_time_changed and mock_device_tracker_conf in tests

* Migrate collection of component tests from coroutine to async/await (home-assistant#30504)

* Add LED control of push buttons and bump velbus-library (home-assistant#30445)

* Add LED control

* Bump python-velbus library to 2.0.35

To have LED control available in library

* Apply black formating

* Fix no-else-return pylint error

* Changed to f-string and more dry code

* Rewrite turn_on for LED control

* [ci skip] Translation update

* Bump teslajsonpy to 0.2.2 (home-assistant#30512)

Fixes home-assistant#30235

* deCONZ - Rotation support for Xiaomi magic cube (home-assistant#30472)

* Added rotation to deconz magic cube event

* Device trigger support

* Spell Zigbee consistently, with lowercase "b" (home-assistant#30440)

https://zigbeealliance.org/developer_resources/zigbee-specification/
"Please note that this uses old branding, Zigbee is always a lowercase
 B, not a capital. This change occurred shortly after the official
 release of this document."

Also other docs at https://zigbeealliance.org/solution_type/zigbee/,
zigpy/zigpy#111

* Update GarbageTypeCodes for rova

Updating rova/sensor.py. Rova json format changed for garbage collection.

* Add HmIP-PMFS and HmIP-WHS2 to HomematicIP Cloud (home-assistant#30325)

* update test data

* Update homematicip_cloud.json

* Add HmIP-WHS2

* Add HmIP-PMFS

* Add surepetcare component (home-assistant#24426)

* add surepetcare

* cleanup

* remove unused imports and comments

* remove comment

* fix bug which prevented updating the sensors

* improve config validation

* fix voluptuous usage

* fix format & credential storage

* various fixes to hass-conform

* small format fixes

* change False to None

* still trying to be hass-conform

* remove unused class

* fix imports

* fix f-string

* add guard clause?!

* central data fetch

* do not pass in hass, will be provided automatically

* make the linters happy

* disable constant-test warning and add commas

* worksforme

* fix link in manifest

* remove icon

* bump surepy to 0.1.5

* worksforme

* small doc fixes

* add discovery_info guard

* result of another awesome review

* and again :)

* exclude surepetcare in .coveragerc

* Add support for homekit air quality sensors (home-assistant#30510)

* Add air quality sensor

* Fix comment from review

* Fix comment from review

* Lint fix

* Set required_features field when registering fan services (home-assistant#30516)

* Set required_features on fan services

* Fix mqtt fan test

* Update fan.py

* Add Brother Printer integration (home-assistant#30359)

* Init entities as unavailable when offline

* Initial commit

* Fix CODEOWNERS

* CODEOWNERS

* Run script.hassfest

* Add initial test

* Bump library

* More tests

* Tests

* Add new sensors and fix KeyError

* Fix unique_id and device_info

* Fix check for configured device

* More tests

* Bump library version

* Add uptime sensor

* Use config entry unique ID

* Run python3 -m script.gen_requirements_all

* Fix pylint error

* Remove pysnmp dependency

* Raise ConfigEntryNotReady when device offline at HA start

* Remove period from logging message

* Generator simplification

* Change raise_on_progress

* Rename data to printer

* Move update state to async_update

* Remove unused _unit_of_measurement

* Remove update of device_info

* Suggested change for tests

* Remove unnecessary argument

* Suggested change

* Format all manifests with prettier (home-assistant#30521)

* Fix google sync (home-assistant#30524)

* Handle wired bug on restart (home-assistant#30276)

* Bump pysmartthings 0.7.0 (home-assistant#30302)

* Bump env_canada to 0.0.31 (home-assistant#30409)

* Fix google sync (home-assistant#30524)

* Bumped version to 0.103.6

* Fix AVM FRITZ!DECT switch total consumption (home-assistant#30478)

actor.get_energy() returns Wh, so division by 1000 is correct

* Register 'androidtv.download' and 'androidtv.upload' services (home-assistant#30086)

* Add tests

* Add FileSync test

* Fill in services.yaml for 'androidtv.adb_filesync' service

* Update example paths in services.yaml

* Bump androidtv to 0.0.37

* Bump androidtv to 0.0.37

* Bump androidtv to 0.0.37

* Import LockNotAcquiredException

* Import LockNotAcquiredException from androidtv.exceptions

* Rename 'host' to 'address'

* Add a logging statement when an ADB command is skipped

* Check hass.config.is_allowed_path(local_path)

* Add return

* Fix pylint

* Reduce duplicated code (AndroidTVDevice vs. FireTVDevice)

* Split 'adb_filesync' service into 'download' and 'upload' services

* Don't use '.get()' for required data; return if the services are already registered

* Replace "command" with ATTR_COMMAND

* Don't try to connect to a device if it is a duplicate

* Allow specific status codes while notifying mobile_app devices (home-assistant#30496)

* Removed check and return with a notification status of 201

* Allow additional result codes

Allow 200, 201, and 202 as valid result codes

* Correct integration names in manifests (A-B) (home-assistant#30527)

* Correct names in manifests (A-B)

* Just Baidu

* Asterisk Call Detail Records

* Fire restarted event on restarting active timer (home-assistant#30475)

* Fire restarted event on restarting active timer

* Added test for the restart event

* Bump synologydsm to 0.3.0 (home-assistant#30529)

* [ci skip] Translation update

* Add pilight dimmer as light component (home-assistant#30107)

* Add pilight dimmer as light component

* fix CI errors

* fix missing new lines

* improve formatting and addresses comments of @springstan

* rename config parameter and remove super() call to match pylint

* import only used constants of the pilight component

* Add myself to the code owners

* fix CODEOWNERS

* Add "autobypass" option when arming AlarmDecoder integration (home-assistant#30002)

* Initial implementation

* Passing autobypass parameter to constructor, as suggested

* Black formatting

* Removed default value from autobypass parameter of the constructor, as it's redundant

* Update vizio component to prepare for config flow and zeroconf support (home-assistant#30522)

* move constants, move schema validation to init, prepare for zeroconf/config flow

* update requirements_all and make setup validation more pythonic

* mistake in refactor

* un-revert change from previous PR

* rename schema var

* update .coveragerc, move validate_auth to __init__, only attempt to get ESN if device setup is validated

* reinstate validate_setup but change logic to use new connection test function

* fix schema validation

* simplify string empty check logic

* missed commit

* Correct names in manifests (C-L) (home-assistant#30532)

* Use collection helpers for input_boolean (home-assistant#30514)

* Refactor input_boolean to use config dict for instantiation.

* Refactor input_boolean to use YamlCollection.

* Add storage collection to input_boolean.

* Update homeassistant/components/input_boolean/__init__.py

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

* Doh.

* Address comments.

* Add editable device state attribute.

* Clean up entities from entity registry on removal.

Reload yaml from correct source.

* Add tests.

* Update homeassistant/components/input_boolean/__init__.py

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

* Don't reset entity state on updates.

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Add venstar PIN to config and client initialization (home-assistant#30300)

* Add PIN to config and client  initialization

* Fix Formatting Error

* update PLATFORM_SCHEMA validation with the new option.

* Swiss Transport Data: Save delay on sensor (home-assistant#30526)

* Update manifest.json: Typo fixed (home-assistant#30542)

* Upgrade to use new version of HASS-nabucasa (home-assistant#30506)

* Upgrade to use new version of HASS-nabucasa

* Update hass-nabucasa to 0.31

* Correct names in manifests (M-P) (home-assistant#30541)

* Bump adb-shell to 0.1.1 and androidtv to 0.0.38 (home-assistant#30539)

* Bump adb-shell to 0.1.1 and androidtv to 0.0.38

* Bump adb-shell to 0.1.1 and androidtv to 0.0.38

* Bump adb-shell to 0.1.1 and androidtv to 0.0.38

* Catch UnicodeDecodeError exceptions in 'androidtv.adb_command' service (home-assistant#30538)

* Catch UnicodeDecodeError exceptions in 'androidtv.adb_command' service

* Replace "adb_command" with SERVICE_ADB_COMMAND

* Remove `suppress_warning` from config options for vizio component (home-assistant#30536)

* move constants, move schema validation to init, prepare for zeroconf/config flow

* mistake in refactor

* update .coveragerc, move validate_auth to __init__, only attempt to get ESN if device setup is validated

* fix schema validation

* remove suppress warning config option

* remove config_flow from manifest since its not ready yet

* update requirements_all.txt

* fix issue with merge conflict

* Use capability attributes in climate (home-assistant#30544)

Co-authored-by: Jc2k <john.carr@unrouted.co.uk>

* Correct names in manifests (Q-S) (home-assistant#30543)

* Update featured integrations screenshot in README (home-assistant#30134)

* Update featured integrations in README

* Update screenshot to include Somfy and exclude Almond

* Update outdated screenshot of featured components

* Correct names in manifests (T-Z) (home-assistant#30546)

* Add TMB sensor (home-assistant#27964)

* Add TMB i-Bus sensor

* Raise exception if HTTP error

* Addressed comments

* Fixed format

* Fixed format

* Addressed comments

* Remove guard before add_entities method

* Remove unauthorized exception

* Make CONF_BUS_STOPS option required

* Add reset_energy_counter service to Homematic IP Cloud (home-assistant#30256)

* Add reset_energy_counter service to Homematic IP Cloud

* Fix isort

* Register service as admin service

* Add Integration Quality Scale to manifest (home-assistant#30547)

* Ease code before adding color and temperature to light template (home-assistant#30455)

* Split async_update

* Use pytest parameters to avoid duplicate code

* Fix UnboundLocalError

* Test error rendering for template state

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Entity Component to no longer generate automatic groups (home-assistant#23789)

* Fix incorrect Rainmachine dict lookups (home-assistant#30550)

* Fix missing strings for deconz magic cube rotation support (home-assistant#30552)

* Fix missing strings for deconz magic cube rotation

* Fix missing strings for deconz magic cube rotation

* Fix hue flashing innr lights (home-assistant#29828)

* Migrate Integration Quality Scale from docs to manifest: internal (home-assistant#30551)

* Updated frontend to 20200107.0 (home-assistant#30561)

* Add command to delete lovelace config (home-assistant#30558)

* Add command to delete lovelace config

* Test + decorator for WS

* [ci skip] Translation update

* Add android repo to issue template (home-assistant#30571)

* Bump pyRFXtrx to 0.25 (home-assistant#30566)

* deCONZ - Make sensors sorted on creation for deterministic order (home-assistant#30569)

* Make sensors sorted on creation for deterministic order

* Martins comment

* deCONZ - Fix device automations (home-assistant#30577)

* Trigger automation without skipping condition (home-assistant#28484)

* Trigger automation without skipping condition

* [] instead of .get()

* Update __init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Use more consts for person implementation (home-assistant#30553)

* Use more consts for person implementation.

* Use ATTR_ENTITY_ID.

* Migrate Integration Quality Scale from docs to manifest (home-assistant#30579)

* Add missing string for already_configured in Brother integration (home-assistant#30584)

* Bump adguardhome to 0.4.1 (home-assistant#30586)

* Add missing string for already_configured in GIOS integration (home-assistant#30590)

* evohome: allow two round thermostats per gateway (home-assistant#30589)

* bugfix issue home-assistant#30517
* bump library, tweak name in manifest
* remove lint hint

* Updated frontend to 20200108.0 (home-assistant#30591)

* Fix WLED transition time unit (home-assistant#30583)

* Add Stookalert integration (home-assistant#30306)

* Added Stookalert integration

* Added Stookalert integration

* Added Stookalert integration

* Solved comments

* Flake8 change

* Bump stookalert to version 1.1.2

* Fixed attributes and state

* Get method for private variables

*  Update to stookalert 0.1.4

* Code optimization

* Update requirements

* The MFI Dimmer Switch model is missing from the list, causing the mfi Wall switches not to be recognized. (home-assistant#30572)

Please add this one model to support my mfi switches, thank you.

 python 1.py dump_sensors --noverify
               Model |                Label |             Tag |      Value | Extra
------------------------------------------------------------------------------
       Dimmer Switch |        Bedroom2Light |      active_pwr |  22.047071 | 1.0
       Dimmer Switch |      LivingRoomLight |      active_pwr |        0.0 | 0.0
       Dimmer Switch |      FamilyRoomLight |      active_pwr |  42.803919 | 1.0
       Dimmer Switch |   MasterBedroomLight |      active_pwr |        0.0 | 0.0

* Add last_online and level attribute to steam online (home-assistant#30321)

* Steam Online: Add last_online and Level attributes

* Steam Online: Add last_online and Level attributes

* Fixes from comments on initial pull request

* Push attributes only if they are not None

* Version bump to 0.105.0dev0

* Implement capability attributes (home-assistant#30545)

* Implement capability attributes

* Fix HeOS update order

* Fix test

* Add Doorbird events to logbook (home-assistant#30588)

* Add Doorbird events to logbook

* Add logbook to dependencies

* Fix problem with restoring POE control (home-assistant#30597)

* Update pyhomematic to 0.1.63 (home-assistant#30594)

* [ci skip] Translation update

* Template alarm panel (home-assistant#30487)

* Added support for template alarm panel

* Rewrote tests in new async format

* Fix stale docstring

* Update to tests, standardization on NAME vs FRIENDLY_NAME

* Fix upnp raw sensor state formatting when None (home-assistant#30444)

* Fix aurora sensor not converting latitude and longitude correctly (home-assistant#28643)

* Add neato boundary name to state if it exists (home-assistant#29915)

* Add boundary name to state if it exists

If the robot is cleaning a pre defined area with a name, add the name to the state-attribute.

* Reformat patch

* Removing whitespace

* Even more formatting 

That black did not catch on first run...

* Fix aurora import order (home-assistant#30606)

* Set body size for Proxy / streams to 16mb (home-assistant#30608)

* tweak honeywell manifest (home-assistant#30612)

* Fix statistics sensor honouring max_age (home-assistant#27372)

* added update listener if max_age is set

* remove commented out code

* streamline test code

* schedule next update based on the next state to expire

* fixed update process

* isort

* fixed callback function

* fixed log message

* removed logging from test case

* Add preset scheduling to radiothermostat (home-assistant#29847)

* Added preset scheduling to radiothermostat. Added alternate scheduling & religious scheduling to climate/const.py

* Fix Flake8 Errors in climate.py

* Fixing more flake8 errors in climate.py

Removed duplicate set_preset_mode def

* Fixed more flake8 errors. 

Please be the end of these errors.

* Fixed black formatting

* Fixed black, broke flake8, fixed flake8

* Fixed CODE_TO_FAN_STATE black error

* Fixed isort issues

* Local isort broke black formatting

Docs should run isort before black. Default isort will undo certain black formatting.

* Removed last commas from imports

* Added removed line

* Fixed formatting

Hopefully this is what the CI pipeline is looking for.

* Ran isort from git repo root, utilizing setup.cfg.

* One more try

* fixed added definition and fixed logger string

* fixed formatting

* lost a close-paren

* Update const.py

Removed radiotherm specific presets

* Update climate.py

Moved preset definitions into radiotherm climate.py

* Fix TOD component incorrectly determining the state between sunrise and sunset (home-assistant#30199)

* TOD fix

* Comment added

* Review

* Review

* Review

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: SukramJ <markus@mm-jankowski.de>
Co-authored-by: Felix Barbalet <xlfe@users.noreply.github.com>
Co-authored-by: Maikel Punie <maikel.punie@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Robbie Trencheny <me@robbiet.us>
Co-authored-by: Marcelo Moreira de Mello <tchello.mello@gmail.com>
Co-authored-by: Robert Van Gorkom <vangorra@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
Co-authored-by: Home Assistant Bot <hello@home-assistant.io>
Co-authored-by: LE LAY Olivier <liollury@gmail.com>
Co-authored-by: François <mockersf@gmail.com>
Co-authored-by: Jc2k <john.carr@unrouted.co.uk>
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
Co-authored-by: Alan Tse <alandtse@users.noreply.github.com>
Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>
Co-authored-by: Tais Hedegaard Holland <32095655+taisholland@users.noreply.github.com>
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
Co-authored-by: Andrew Sayre <6730289+andrewsayre@users.noreply.github.com>
Co-authored-by: Phil Bruckner <pnbruckner@gmail.com>
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Issac <margol@beamartyr.net>
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
Co-authored-by: Steven Barth <steven.barth@outlook.com>
Co-authored-by: rhadamantys <46837767+rhadamantys@users.noreply.github.com>
Co-authored-by: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com>
Co-authored-by: Christian <christian.wildt@googlemail.com>
Co-authored-by: Iulius <iulius@gutberlet.eu>
Co-authored-by: brefra <frank_van_breugel@hotmail.com>
Co-authored-by: Lars-P <lars@pawellek.net>
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
Co-authored-by: Josh Bendavid <Josh.Bendavid@cern.ch>
Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Jeff Irion <JeffLIrion@users.noreply.github.com>
Co-authored-by: Aaron David Schneider <Aaron.David.Schneider@gmail.com>
Co-authored-by: Ernst Klamer <e.klamer@gmail.com>
Co-authored-by: michaeldavie <michael.davie@gmail.com>
Co-authored-by: David F. Mulcahey <david.mulcahey@icloud.com>
Co-authored-by: Oliver <scarface-4711@users.noreply.github.com>
Co-authored-by: ochlocracy <5885236+ochlocracy@users.noreply.github.com>
Co-authored-by: tetienne <thibaut@etienne.pw>
Co-authored-by: Stefan Agner <falstaff@deheime.ch>
Co-authored-by: Ian Duffy <1243435+imduffy15@users.noreply.github.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: David K. <142583+neffs@users.noreply.github.com>
Co-authored-by: Sérgio <smaisidoro@gmail.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Josh Anderson <andersonshatch@gmail.com>
Co-authored-by: David Cramer <dcramer@users.noreply.github.com>
Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
Co-authored-by: FrengerH <frengerh@protonmail.com>
Co-authored-by: Gido <gido@hakvoort.it>
Co-authored-by: Ben <benleb@users.noreply.github.com>
Co-authored-by: Alexxander0 <26937883+Alexxander0@users.noreply.github.com>
Co-authored-by: rccoleman <rccoleman@gmail.com>
Co-authored-by: Markus Nigbur <markus@mnigbur.de>
Co-authored-by: Quentame <polletquentin74@me.com>
Co-authored-by: Trekky12 <Trekky12@users.noreply.github.com>
Co-authored-by: Eleftherios Chamakiotis <lexam@lexam.gr>
Co-authored-by: Jason Ross <github@csfreak.com>
Co-authored-by: Colin Frei <colin.frei@liip.ch>
Co-authored-by: Casper <casperklein@users.noreply.github.com>
Co-authored-by: Aleix Murtra <alemurbcn@gmail.com>
Co-authored-by: Aaron Bach <bachya1208@gmail.com>
Co-authored-by: Sascha Kühndel <dev@inusasha.de>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Daniel Shokouhi <dshokouhi@gmail.com>
Co-authored-by: Santobert <tobhaase@gmail.com>
Co-authored-by: David Bonnes <david@bonnes.me>
Co-authored-by: fwestenberg <47930023+fwestenberg@users.noreply.github.com>
Co-authored-by: mohmacht <47925536+mohmacht@users.noreply.github.com>
Co-authored-by: Mariano Faraco <mfaraco@gmail.com>
Co-authored-by: Matt Snyder <msnyder@viralstyle.com>
Co-authored-by: Daniel Perna <danielperna84@gmail.com>
Co-authored-by: Alistair Galbraith <alistair@alistairs.net>
Co-authored-by: Watchfox <45469709+Watchfox@users.noreply.github.com>
Co-authored-by: Olen <github@olen.net>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Malte Franken <exxamalte@users.noreply.github.com>
Co-authored-by: William Sutton <will@sutton-family.org>
Co-authored-by: Nikolay Vasilchuk <Anonym.tsk@gmail.com>
@lock lock bot locked and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Dev
  
Done
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.