Files
core/homeassistant/components
ehendrix23 ecca51b16b Add tests for directv platform (#18590)
* Create test for platform

Created test for platform.
Added media_stop to common.py test

* Multiple improvements

Fixed lint issue in common.py
Fixed lint issues in test_directv.py
Improved patching import using modile_patcher.start() and stop()
Added asserts for service calls.

* Updates based on Martin's review

Updates based on Martin's review.

* Updated test based on PR#18474

Updated test to use service play_media instead of select_source based on change from PR18474

* Lint issues

Lint issues

* Further updates based on feedback

Updates based on feedback provided.

* Using async_load_platform for discovery test

Using async_load_platform for discovery tests.
Added asserts to ensure entities are created with correct names.

* Used HASS event_loop to setup component

Use HASS event_loop to setup the component async.

* Updated to use state machine for # entities

Updated to use state machine to count # entities instead of entities.

* Use hass.loop instead of getting current loop

Small update to use hass.loop instead, thanks Martin!

* Forgot to remove asyncio

Removed asyncio import.

* Added fixtures

Added fixtures.

* Remove not needed updates and assertions

* Return mocked dtv instance from side_effect

* Fix return correct fixture instance

* Clean up assertions

* Fix remaining patches

* Mock time when setting up component in fixture

* Patch time correctly

* Attribute _last_update should return utcnow
2018-12-01 10:28:27 +01:00
..
2018-11-26 14:30:21 +01:00
2018-11-15 14:30:37 +01:00
2018-11-28 22:17:37 +01:00
2018-10-08 16:35:38 +02:00
2018-11-15 14:30:37 +01:00
2018-11-21 20:18:56 +01:00
2018-11-14 02:20:15 +01:00
2018-11-21 20:55:21 +01:00
2018-11-26 14:40:43 +01:00
2018-10-14 17:11:39 +02:00
2018-11-15 14:30:37 +01:00
2018-11-16 11:42:48 +01:00
2018-11-21 20:18:56 +01:00
2018-11-30 21:28:35 +01:00
2018-11-21 20:18:56 +01:00
2018-11-15 14:30:37 +01:00
2018-11-06 10:36:52 +01:00
2018-11-26 14:30:21 +01:00
2018-11-24 10:02:06 +01:00
2018-11-21 20:18:56 +01:00
2018-11-15 14:30:37 +01:00
2018-11-30 16:31:35 +01:00
2018-11-11 23:16:23 +01:00
2018-11-26 14:30:21 +01:00
2018-11-29 22:17:01 +01:00
2018-11-26 14:30:21 +01:00
2018-11-26 14:30:21 +01:00
2018-11-13 10:01:14 +01:00
2018-10-01 08:52:42 +02:00
2018-11-26 14:30:21 +01:00
2018-11-30 11:18:24 +01:00
2018-11-21 20:18:56 +01:00
2018-11-26 14:30:21 +01:00
2018-11-21 20:18:56 +01:00
2018-11-27 15:44:09 +01:00
2018-11-27 21:21:25 +01:00
2018-11-15 14:30:37 +01:00
2018-11-27 13:09:25 -05:00
2018-10-01 08:52:42 +02:00
2018-11-30 21:28:35 +01:00
2018-11-29 23:44:29 +01:00
2018-10-02 07:32:03 +02:00
2018-10-21 19:54:51 +02:00
2018-10-30 21:23:44 +01:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-03 06:28:08 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-14 23:51:15 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-02 11:03:09 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-28 23:03:27 +01:00
2018-10-02 10:23:37 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-17 23:09:05 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-11-21 23:31:08 -08:00
2018-11-30 08:45:40 -05:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-28 13:57:44 +01:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-09-27 23:13:11 +02:00
2018-10-01 08:52:42 +02:00
2018-09-18 14:59:39 +02:00
2018-10-02 11:03:09 +02:00
2018-10-25 23:15:20 +03:00
2018-10-31 09:10:28 +01:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-11-04 17:22:03 +01:00
2018-10-02 11:03:09 +02:00
2018-10-01 08:52:42 +02:00
2018-10-29 15:50:44 +01:00
2018-11-14 09:40:43 -05:00
2018-11-18 19:41:24 +01:00
2018-11-08 18:49:00 +01:00
2018-10-01 08:52:42 +02:00
2018-10-24 18:59:52 +02:00