Skip to content

Commit

Permalink
Time-of-day test coverage exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
autoSteve committed Dec 28, 2024
1 parent 04a9cf6 commit 4804258
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/solcast_solar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async def __check_auto_update_missed(coordinator: SolcastUpdateCoordinator):
coordinator.interval_just_passed.astimezone(coordinator.solcast.options.tz).strftime(DATE_FORMAT),
)
await coordinator.service_event_update(ignore_auto_enabled=True, completion="Completed task update_missed")
else:
else: # pragma: no cover, time-of-day dependent
_LOGGER.debug("Auto update forecast is fresh")
except TypeError: # pragma: no cover, catch unexpected exceptions
_LOGGER.warning("Auto update freshness could not be determined")
Expand Down
2 changes: 0 additions & 2 deletions custom_components/solcast_solar/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

from __future__ import annotations

import json
import logging
from pathlib import Path
import re
from typing import Any

import aiofiles
import voluptuous as vol

from homeassistant import config_entries
Expand Down

0 comments on commit 4804258

Please sign in to comment.