mirror of
https://github.com/home-assistant/core.git
synced 2025-06-21 21:47:06 +00:00

* Refactor Hue Lights to use DataCoordinator * Redo how Hue updates data * Address comments * Inherit from Entity and remove pylint disable * Add tests for debounce
12 lines
286 B
Python
12 lines
286 B
Python
"""Test helpers for Hue."""
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def no_request_delay():
|
|
"""Make the request refresh delay 0 for instant tests."""
|
|
with patch("homeassistant.components.hue.light.REQUEST_REFRESH_DELAY", 0):
|
|
yield
|