Add calendar entity to Radarr (#79077)

* Add calendar entity to Radarr

* address feedback/add tests

* black

* uno mas

* rework to coordinator

* uno mas

* move release atttribute writing

* fix calendar items and attributes
This commit is contained in:
Robert Hillis 2023-12-05 10:51:51 -05:00 committed by GitHub
parent 3bcc6194ef
commit 651df6b698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 348 additions and 5 deletions

View file

@ -1,4 +1,6 @@
"""Test Radarr integration."""
import pytest
from homeassistant.components.radarr.const import DEFAULT_NAME, DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
@ -9,6 +11,7 @@ from . import create_entry, mock_connection_invalid_auth, setup_integration
from tests.test_util.aiohttp import AiohttpClientMocker
@pytest.mark.freeze_time("2021-12-03 00:00:00+00:00")
async def test_setup(hass: HomeAssistant, aioclient_mock: AiohttpClientMocker) -> None:
"""Test unload."""
entry = await setup_integration(hass, aioclient_mock)
@ -43,6 +46,7 @@ async def test_async_setup_entry_auth_failed(
assert not hass.data.get(DOMAIN)
@pytest.mark.freeze_time("2021-12-03 00:00:00+00:00")
async def test_device_info(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None: