Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 21, 2023
1 parent 0d0ec9d commit ef7a062
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions custom_components/energidataservice/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.event import (
async_call_later,
)
from homeassistant.helpers.event import async_call_later
import voluptuous as vol

from .connectors import Connectors
Expand Down
4 changes: 3 additions & 1 deletion custom_components/energidataservice/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ async def async_added_to_hass(self):
await super().async_added_to_hass()
_LOGGER.debug("Added sensor '%s'", self._entity_id)
await self.validate_data()
async_dispatcher_connect(self._hass, UPDATE_EDS.format(self._entry_id), self.validate_data)
async_dispatcher_connect(
self._hass, UPDATE_EDS.format(self._entry_id), self.validate_data
)

@property
def unique_id(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/energidataservice/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_DEVICE_ID, CONF_ENTITY_ID
from homeassistant.core import HomeAssistant, ServiceCall, callback
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers import (
config_validation as cv,
device_registry as dr,
entity_registry as er,
)
from homeassistant.helpers.device_registry import DeviceEntry
from homeassistant.helpers.dispatcher import async_dispatcher_send
import voluptuous as vol

from .api import APIConnector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from datetime import datetime
import json
from logging import getLogger
from aiohttp import ClientSession

import aiohttp
from aiohttp import ClientSession
from async_retrying import retry

from homeassistant.util import slugify as util_slugify

from .chargeowners import CHARGEOWNERS
Expand Down Expand Up @@ -65,7 +65,6 @@ async def async_get_tariffs(self):
await self.async_get_system_tariffs()

try:

chargeowner = CHARGEOWNERS[self._chargeowner]
limit = "limit=500"
objfilter = 'filter=%7B"note": {},"gln_number": ["{}"]%7D'.format( # pylint: disable=consider-using-f-string
Expand Down

0 comments on commit ef7a062

Please sign in to comment.