Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
07a1a0efa9
Add type hints to integration tests (part 1) ( #87777 )
2023-02-09 16:09:13 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests ( #87726 )
2023-02-08 13:28:44 -06:00
epenet
2545694d41
Add type hints to integration tests (a) ( #87684 )
...
* Add type hints to accuweather tests
* Adjust a** components
* Adjust aiohttp_client
* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Erik Montnemery
4655ed995e
Fix resetting of attributes in EntityRegistry.async_get_or_create ( #77516 )
...
* Fix resetting of attributes in EntityRegistry.async_get_or_create
* Fix typing
* Fix resetting config entry
* Improve test
* Update tests
2022-08-30 21:07:50 +02:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ( #70335 )
...
* Mark device triggers from hidden or auxiliary entities as secondary
* Update tests
2022-04-21 08:01:32 +02:00
Erik Montnemery
150f173eed
Mark device conditions from hidden or auxiliary entities as secondary ( #70333 )
2022-04-20 21:41:59 +02:00
Erik Montnemery
64381acbaf
Mark device actions from hidden or auxiliary entities as secondary ( #70278 )
2022-04-20 10:48:46 -07:00
Franck Nijhof
be7fc35dfa
Add EntityFeature enum to Alarm Control Panel ( #69044 )
2022-04-01 13:54:03 +02:00
Franck Nijhof
8aff8d89d2
Clean up async_reproduce_state helper usage ( #68617 )
2022-03-24 14:40:54 +01:00
Ville Skyttä
9b437ef146
Remaining DeviceAutomationType bits ( #62508 )
...
* Use DeviceAutomationType in missed tests/components/*
* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Ville Skyttä
5926961ed5
Use DeviceAutomationType in tests/components/[a-f]* ( #62440 )
2021-12-20 22:26:29 +01:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ( #61006 )
...
* Remove deprecated base entity classes
* Clean up tests
2021-12-05 13:53:52 +01:00
Erik Montnemery
85786fd987
Make some device action tests more explicit ( #59469 )
...
* Make some device action tests more explicit
* Adjust tests
2021-11-11 12:32:51 +01:00
posixx
547ede1e91
Implementation of new Vacation mode for MQTT-based alarm panels ( #53561 )
...
* Impelentation of new Vacation Mode for MQTT-based alarm panels
* Fixed typo
* another typo fix
* Split integrations: remove manual_mqtt
* added newline
* Impelentation of new Vacation Mode for MQTT-based alarm panels
* Fixed typo
* another typo fix
* Split integrations: remove manual_mqtt
* added newline
* missing abbreviation
* Fix tests
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-24 13:22:49 +02:00
posixx
312531988a
Vacation Mode on Alarm Panels ( #45980 )
...
Co-authored-by: Nathan Tilley <nathan@tilley.xyz>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Khole Jones <ktech6@outlook.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-07-01 17:26:32 +02:00
Erik Montnemery
08af791d4c
Improve editing of device conditions referencing non-added alarm ( #51830 )
2021-06-14 13:05:27 +02:00
Erik Montnemery
f9e9202e2d
Improve editing of device triggers referencing non-added alarm ( #51701 )
2021-06-13 00:07:25 +02:00
Erik Montnemery
3a739563b4
Improve editing of device actions referencing non-added alarm ( #51747 )
2021-06-12 23:43:28 +02:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version ( #49916 )
2021-05-17 15:48:41 +02:00
Erik Montnemery
9526701e57
Add 'for' to alarm device triggers ( #48503 )
2021-03-30 13:49:23 +02:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Erik Montnemery
f99c27c6d4
Remove unneeded from_state from device triggers ( #45152 )
2021-02-08 11:09:45 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ( #43321 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Pascal Vizeli
c291d4aa7d
Intelligent timeout handler for setup/bootstrap ( #38329 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-05 14:58:19 +02:00
Erik Montnemery
4e77969f5e
Drop use of mock_mqtt_component ( #37013 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-23 10:17:22 -07:00
Erik Montnemery
6f7f5b4034
Rename AlarmControlPanel to AlarmControlPanelEntity ( #34590 )
2020-04-25 18:05:28 +02:00
starkillerOG
7bfc1d2840
Use "arming" state during transition in manual alarm panel ( #32950 )
...
* Manual Alarm Control Panel: use proper "Arming" state
* Update previous and next attributes
* add CONF_ARMING_TIME
* Split up arming and pending time, pending_time --> arming_time
* update tests
* fix issort
* fix issort
* fix demo platform
* fix alarm test
* remove arming_time from the triggered state
* Match previous default "delay_time"
* fix tests
* fix arming state when triggering
* fix arming _arming_time_by_state for Triggering state
* change to not in list
* Update homeassistant/components/manual/alarm_control_panel.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* async_update_ha_state -> async_write_ha_state
* black formatting
* add Callback
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* import callback
* update device triggers alarm_control_panel
* Update test_device_trigger.py
* Update device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-24 00:07:07 +02:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
springstan
51b9afe3c1
Add device condition for alarm_control_panel ( #29063 )
...
* Initial commit
* Restricting conditions by supported_features, drop pending condition
* Added tests for no and minimum amount of conditions
* Address review comments
* Sort impors with isort
* Sort impors with isort v2
2020-03-16 18:08:06 -05:00
springstan
524a1a7587
Use f-strings in integrations starting with "A" ( #32110 )
...
* Use f-strings in integrations starting with A
* Use f-strings in tests for integrations starting with A
* Fix pylint by renaming variable
* Fix nested for loop in f-string for aprs device_tracker
* Break long lines into multiple short lines
* Break long lines into multiple short lines v2
2020-02-23 13:38:05 -08:00
Bas Nijholt
d020486929
sort imports according to PEP8 for alarm_control_panel ( #29616 )
2019-12-08 13:42:31 +01:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
springstan
8908dba5b4
Add device trigger for alarm_control_panel ( #29068 )
...
* Added device trigger to alarm control panel
* Added supported features to check that device has certain trigger
* Fixed tests for device_trigger
* Fixed pylint error
* Removed pending trigger and removed trigger condition
2019-11-30 21:30:51 -08:00
SukramJ
1fde0d18ed
Add supported_features to Alarm Control Panel to limit device_actions ( #29065 )
...
* Add supported_features to Alarm Control Panel
* mark supported_features abstract
* Add SF to async_register_entity_service
* fix test
* Add missing SF SUPPORT_ALARM_ARM_CUSTOM_BYPASS
* isort
* fix async_register_entity_service
* Update alarm_control_panel.py
2019-11-25 15:42:53 -08:00
Santobert
12f1a8f551
Add improved scene support to the alarm_control_panel integration ( #28269 )
...
* Add improved scene support to the alarm_control_panel integration
* Add service description for alarm_arm_custom_bypass
2019-11-01 13:36:18 -07:00
Erik Montnemery
43c85c0549
Add device action support to the alarm_control_panel integration ( #27616 )
...
* Add device action support to the alarm_control_panel integration
* Improve tests
2019-10-16 21:34:56 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Erik Montnemery
5376e15286
Convert some test helpers to coroutines and adjust tests ( #23352 )
...
* Convert some test helpers to coroutines
* Fix tests
2019-04-25 10:14:16 +02:00
Paulus Schoutsen
1ddc249989
Consolidate more platforms ( #22308 )
...
* Consolidate final platforms
* Fix some tests
* Fix more tests
* Fix more tests
2019-03-23 20:22:35 -07:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ( #22096 )
...
* Consolidate
* Fix tests
* Update imports
* Fix import
* Use importlib because integration and package share name
* Fix more tests
* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
emontnemery
5b53bd6aa0
Move MQTT platforms under the component ( #20050 )
...
* Move MQTT platforms under the component
2019-01-15 17:31:06 +01:00
emontnemery
44f6151548
Cleanup if discovered mqtt alarm can't be added ( #19742 )
...
* Cleanup if discovered mqtt alarm can't be added
2019-01-08 16:49:47 +01:00
emontnemery
ae776e2d28
Add device registry to MQTT alarm control panel ( #19331 )
...
* Add device registry to MQTT alarm control panel
* Add testcase test_entity_id_update
2018-12-19 19:27:23 +01:00
emontnemery
5e18d52302
Reconfigure MQTT alarm component if discovery info is changed ( #18173 )
2018-11-24 10:48:01 +01:00
Adam Mills
ce069be16e
Update manual ACP tests to async ( #18289 )
2018-11-07 09:56:24 +01:00
liaanvdm
3c68db32d6
Restore manual alarm-control-panel state using async_get_last_state ( #17521 )
...
* Restore manual alarm-control-panel state using async_get_last_state
This is to address issue #10793
* Added tests for restoring manual alarm state on startup
* Cleaned up test formatting
* Fixed more linting errors
* Changed async methods to use asynch/await syntax
* Removed unused asyncio import
2018-10-25 12:21:20 +02:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ( #17750 )
...
* Convert core tests
* Convert component tests to use pytest assert
* Lint 🤷♂️
* Fix test
* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00