mirror of
https://github.com/home-assistant/core.git
synced 2025-11-07 09:59:30 +00:00
* Fix Nanoleaf light state propagation after change from home asisstant * Add tests to check if nanoleaf light is triggering async_write_ha_state * Fix pylint for test case * Fix use coordinator.async_refresh instead of async_write_ha_state * Fix tests --------- Co-authored-by: Joostlek <joostlek@outlook.com>
14 lines
393 B
Python
14 lines
393 B
Python
"""Tests for the Nanoleaf integration."""
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def setup_integration(hass: HomeAssistant, config_entry: MockConfigEntry) -> None:
|
|
"""Set up the component."""
|
|
config_entry.add_to_hass(hass)
|
|
|
|
await hass.config_entries.async_setup(config_entry.entry_id)
|
|
await hass.async_block_till_done()
|