mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 03:35:56 +02:00
Linting
This commit is contained in:
parent
2707950ad9
commit
f0a1853f67
3 changed files with 5 additions and 5 deletions
|
@ -54,6 +54,7 @@ class IrmKmiRadar(CoordinatorEntity, Camera):
|
|||
"""Return still image to be used as thumbnail."""
|
||||
if self.coordinator.data.get('animation', None) is not None:
|
||||
return await self.coordinator.data.get('animation').get_still()
|
||||
return None
|
||||
|
||||
async def handle_async_still_stream(self, request: web.Request, interval: float) -> web.StreamResponse:
|
||||
"""Generate an HTTP MJPEG stream from camera images."""
|
||||
|
|
|
@ -9,14 +9,12 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.helpers import issue_registry
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import (
|
||||
TimestampDataUpdateCoordinator, UpdateFailed)
|
||||
from homeassistant.helpers.update_coordinator import TimestampDataUpdateCoordinator, UpdateFailed
|
||||
from homeassistant.util import dt
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
from .const import CONF_DARK_MODE, CONF_STYLE, DOMAIN, IRM_KMI_NAME, USER_AGENT
|
||||
from .const import IRM_KMI_TO_HA_CONDITION_MAP as CDT_MAP
|
||||
from .const import (OUT_OF_BENELUX)
|
||||
from .const import OUT_OF_BENELUX, CONF_DARK_MODE, CONF_STYLE, DOMAIN, IRM_KMI_NAME, USER_AGENT, \
|
||||
IRM_KMI_TO_HA_CONDITION_MAP as CDT_MAP
|
||||
from .data import ProcessedCoordinatorData
|
||||
from .irm_kmi_api.api import IrmKmiApiClientHa, IrmKmiApiError
|
||||
from .irm_kmi_api.pollen import PollenParser
|
||||
|
|
|
@ -413,3 +413,4 @@ class RainGraph:
|
|||
return be_satellite.be_satelitte_b64
|
||||
elif self._background_image_path.endswith('nl.png'):
|
||||
return nl.nl_b64
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue