J. Nick Koston
07f3d6ebd8
Fix unmocked setup in ipp tests ( #37430 )
2020-07-03 11:43:13 -07:00
J. Nick Koston
c460b7abc9
Fix unmocked setup in garmin_connect test ( #37429 )
2020-07-03 11:42:56 -07:00
ktnrg45
a445ebdf3c
Fix undesired power toggling ( #37427 )
2020-07-03 11:34:11 -07:00
Paulus Schoutsen
0c771f1c42
Replace asynctest with tests.async_mock ( #37428 )
2020-07-03 11:29:35 -07:00
J. Nick Koston
3eb6a68d12
Ensure async_setup is mocked in geonetnz intergration tests ( #37426 )
...
* Ensure async_setup is mocked in geonetnz intergration tests
* s/asynctest/tests.async_mock/g
2020-07-03 11:14:19 -07:00
J. Nick Koston
ab6d6ac1ce
Reduce time to run zha discover tests ( #37424 )
...
Most of the time was registering services and patching
the clusters which are never calls in these tests
2020-07-03 12:57:04 -05:00
Joakim Plate
ab4687d914
Convert rfxtrx tests to pytest async tests and re-enable ( #37206 )
...
* Rework and re-enable rfxtrx tests
* Add missed change to _signal_event
* Fixup the dummy serial that causes max cpu
* Make sure we cleanup thread here too
* Make sure we always wait for tasks before we check state
* Some more places we need to wait before checking
2020-07-03 10:22:02 +02:00
J. Nick Koston
7e664fbb3b
Ensure logbook entries appear when the logbook.log ( #37388 )
...
service without a domain or entity_id
2020-07-02 19:53:28 -05:00
mdegat01
91799e2b52
Modified Influx tests to mock test queries with accurate output ( #37315 )
2020-07-02 17:52:46 -07:00
Robert Van Gorkom and Paulus Schoutsen
a7cf76491b
Fix withings bug that grabbed oldest value instead of the newest ( #37362 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2020-07-02 13:09:49 -07:00
Chris
f6df85f8ce
Add ozw garage door barrier support ( #37316 )
2020-07-02 21:29:09 +02:00
J. Nick Koston
f3039f96ec
Fix flapping gdacs tests ( #37363 )
2020-07-02 13:45:57 -05:00
Shulyaka and J. Nick Koston
4ec71c58bd
Add humidifier support to homekit ( #37207 )
...
* Add humidifier support to homekit
* spell
* dependencies
* lint
* add linked humidity sensor for humidifiers
* Apply suggestions from code review
Co-authored-by: J. Nick Koston <nick@koston.org >
* apply suggestions from code review
* pylint
* Fix tests
* Update homeassistant/components/homekit/type_humidifiers.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Update tests/components/homekit/test_homekit.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Apply suggestions from code review
Co-authored-by: J. Nick Koston <nick@koston.org >
* apply suggestions from code review
* lint
* pylint
* push
* test for unavailable linker sensor
* black
* valid values key case
* black
* Update homeassistant/components/homekit/type_humidifiers.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* black
* coverage
* Set current humidity to 0 if linked sensor removed or unavailable
* use last known humidity instead
Co-authored-by: J. Nick Koston <nick@koston.org >
2020-07-02 12:53:11 -05:00
J. Nick Koston
8bce9be590
Fix flapping flux tests ( #37346 )
2020-07-02 10:51:31 -07:00
J. Nick Koston
a87c29b5d9
Ensure logbook performs well when filtering is configured ( #37292 )
2020-07-02 09:12:27 -07:00
Franck Nijhof and Paulus Schoutsen
235298a1b2
Add Hue manual bridge config flow + options flow ( #37268 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-07-02 14:12:24 +02:00
Gage Benne and Martin Hjelmare
bcabf6da91
Add Dexcom Integration ( #33852 )
...
* Initial commit for Dexcom integration
* Dexcom config flow testing
* Clarify errors during setup
* Resolve minor test issues
* Update sensor availability, resolve linting issues
* Add sensor tests
* Remove title due to 0.109, add abort
* >94.97% codecov/patch
* Move .translations/ to translations/
* Add constants for servers and unit of measurements
* Bump pydexcom version
* Updated domain schema, Dexcom creation
* Support for different units of measurement
* Update tests
* Remove empty items from manifest
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Raise UpdateFailed if fetching new session fails
* Switch everything over to required
* Simplify state information
* Simplify async_on_remove
* Pydexcom package now handles fetching new session
* Only allow config flow
* Remove ternary operator
* Bump version, pydexcom handling session refresh
* Using common strings
* Import from test.async_mock
* Shorten variable names
* Resolve tests after removing yaml support
* Return false if credentials are invalid
* Available seems to handle if data is empty
* Now using option flow, remove handling import
* Add fixture for JSON returned from API
* Overhaul testing
* Revise update options
* Bump pydexcom version
* Combat listener repetition
* Undo update listener using callback
* Change sensor availability to use last_update_success
* Update sensor availability and tests
* Rename test
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2020-07-02 02:14:54 +02:00
mdegat01
52f3238e17
Add constant for PlatformNotReady wait time to use in tests ( #37266 )
2020-07-01 08:42:57 -07:00
Haemish Kyd and Chris Talkington
10786bbe7f
Create PoolSense integration ( #35561 )
...
* Created integration for PoolSense - a device to maintain your pool
* Updated poolsense integration with changes due to code review comments.
* Update poolsense with lint fix (logging-not-lazy)
* Update poolsense with lint fix (f string missing placeholders)
* Update homeassistant/components/poolsense/config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Added test for poolsense component. Updated config_flow to better follow the guidelines.
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update tests/components/poolsense/test_config_flow.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Removed uneccessary functions.
* Added local venv to gitignore
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update to strings to allow for translations. Also some coding convention updates.
* Removed space in icon return
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Removed space in icon return
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Removed space in icon return
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Update homeassistant/components/poolsense/strings.json
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
* Updated to include some error checks for pypi package
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Update tests/components/poolsense/test_config_flow.py
* Update homeassistant/components/poolsense/sensor.py
* Apply suggestions from code review
* Update homeassistant/components/poolsense/__init__.py
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Update homeassistant/components/poolsense/sensor.py
* Apply suggestions from code review
* Update homeassistant/components/poolsense/__init__.py
* Update homeassistant/components/poolsense/sensor.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com >
2020-07-01 00:44:10 -05:00
Shulyaka
06e977b444
Add humidifier support to google_assistant ( #37157 )
2020-06-30 14:32:23 -07:00
J. Nick Koston
7746ecc9fb
Cache checking for entity exposure in emulated_hue ( #37260 )
...
Since we now base all of exposure checks on data that
will not change, we can cache the result instead
of calculating it every loop.
This change complements the work done in #32718
2020-06-30 13:22:17 -05:00
mdegat01
24289d5dbb
Refactor Influx logic to reduce V1 vs V2 code paths ( #37232 )
...
* refactoring to share logic and sensor startup error test
* Added handling for V1 InfluxDBServerError to start-up and runtime and test for it
* Added InfluxDBServerError test to sensor setup tests
* Raising PlatformNotReady exception from sensor for setup failure
* Proper testing of PlatformNotReady error
2020-06-30 20:02:25 +02:00
Phil Bruckner
38210ebbc6
Enhance script integration to use new features in script helper ( #37201 )
2020-06-30 10:22:26 -07:00
mdegat01
b78f163bb0
Changed FilterTest namedtuples to dataclasses ( #37252 )
2020-06-30 11:59:21 -05:00
Erik Montnemery
86c27b50f1
Bump pychromecast to 7.0.1 ( #37225 )
...
* Bump pychromecast to 7.0.1
* Fix tests
* Mark configuration via platform for removal in 0.116
* Fix uuid check
2020-06-30 16:35:10 +02:00
Michał Mrozek
61475d0a0c
Add support for window covers to ozw integration ( #37217 )
...
* feat: add cover to ozw
* fix: imports
* fix: formatting
* fix: improve code regarding comments
* add: cover tests
* fix: add position converting tests
* fix: convert cover position form zwave value
* fix: improve naming
* fix: increase coverage
2020-06-30 13:02:30 +02:00
Jeff Irion
4d17b18761
Register 'androidtv.learn_sendevent' service ( #35707 )
2020-06-29 18:17:04 -07:00
J. Nick Koston and Paulus Schoutsen
fae47358b8
Use shared zeroconf for discovery netdisco ( #37237 )
...
* Use shared zeroconf for netdisco
* Update netdisco
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-06-29 19:34:38 -05:00
Franck Nijhof
79f131066c
Ensure recorder data integrity and MySQL lock error handling ( #37228 )
2020-06-29 16:23:11 -07:00
MatthewFlamm
11debb1568
Fix wind speed change in NWS ( #37222 )
2020-06-29 15:41:52 -07:00
J. Nick Koston and Paulus Schoutsen
89a9634d35
Use eventloop for scheduling ( #37184 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-06-29 09:39:24 -07:00
J. Nick Koston
0f72008090
Ensure homekit state changed listeners are unsubscribed on reload ( #37200 )
...
* Ensure homekit state changed listeners are unsubscribed on reload
* fix mocking
2020-06-29 11:25:26 -05:00
Eugene Prystupa
7ef33a7219
Add first unit test to config flow for Plum Lightpad ( #37183 )
...
* add first unit test to config flow for Plum Lightpad
* add first unit test to config flow for Plum Lightpad (add changed requirements_test_all.txt)
* add first unit test to config flow for Plum Lightpad
* add first unit test to config flow for Plum Lightpad (bring coverage to 100%)
* add first unit test to config flow for Plum Lightpad
* add first unit test to config flow for Plum Lightpad (updated patch path as suggested)
* add first unit test to config flow for Plum Lightpad (add unit test for abort)
2020-06-29 18:07:43 +02:00
mdegat01
b96ce9c210
Additional testing for InfluxDB and some quality improvements ( #37181 )
...
* refactoring and added tests to sensor
* using caplog and not mocking main setup method in sensor tests
2020-06-29 17:31:49 +02:00
Gleb Sinyavskiy
4a374f0378
Limit and sort transmission torrents_info attribute ( #35411 )
2020-06-28 13:56:54 +02:00
Aaron Bach
b0df223f5a
Bump aioguardian ( #37188 )
...
* Bump aioguardian
* Fix tests
2020-06-27 23:16:42 -06:00
Joakim Plate
464f17f182
Fixup rfxtrx tests to at least run ( #37186 )
2020-06-27 21:54:27 -07:00
J. Nick Koston
4acc6f333e
Improve scalability of state change event routing ( #37174 )
2020-06-27 14:46:45 -07:00
jjlawren
ec13eecc59
Update Plex tests to mock websockets ( #37147 )
...
* Update Plex tests to mock websockets
* Avoid unnecessary class mock
2020-06-27 10:03:51 +02:00
mdegat01
d454f85572
Add support for glob matching in InfluxDB filters ( #37069 )
...
* added support for glob filtering to influx
* removed print and using dataclass instead of namedtuple
2020-06-27 00:01:32 +02:00
bsmappee
680f8f8d5a
Improve Smappee integration ( #37087 )
2020-06-26 10:46:14 -07:00
Franck Nijhof
7d74b74570
Fix recorder purging by batch processing purges ( #37140 )
2020-06-26 10:27:45 -07:00
J. Nick Koston
76db2b39b0
Move logbook continuous domain filtering to sql ( #37115 )
...
* Move logbook continuous domain filtering to sql
sensors tend to generate a significant amount of states
that are filtered out by logbook. In testing 75% of
states can be filtered away in sql to avoid the
sqlalchemy ORM overhead of creating objects that will
be discarded.
* remove un-needed nesting
2020-06-26 09:12:50 -05:00
jjlawren
40573bf393
Plex tests cleanup and additions ( #37117 )
2020-06-25 23:24:58 -07:00
jjlawren
fd1a8dd96c
Fix Plex when using local tokenless authentication ( #37096 )
2020-06-25 17:10:40 -07:00
Franck Nijhof
f42eb0d5ca
Fix missing service call context in multiple locations ( #37094 )
2020-06-25 17:09:52 -07:00
Indu Prakash
15773cb3e0
Add worldclock custom format ( #36157 )
2020-06-25 11:41:53 -07:00
J. Nick Koston
f4528d0db2
Ensure history states can be copied ( #37081 )
...
The filter integration makes a copy of a
state object obtained from history.
2020-06-24 22:43:08 -05:00
Paulus Schoutsen
5bc6ed4cef
Add logbook platforms ( #37078 )
...
* Add logbook platforms
* Fix logbook describe test
2020-06-24 18:14:50 -07:00
Aaron Bach and Paulus Schoutsen
7968cd650a
Add concept of allowed external URLs to config ( #36988 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2020-06-24 17:37:01 -07:00