Skip to content

Commit

Permalink
finalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartax authored Jan 9, 2025
1 parent 076ed6f commit 717751a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/binance/binance_ticker_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def extra_state_attributes(self):
return self._data

async def async_added_to_hass(self):
logger.info(
logger.debug(
"Adding %s with update interval of %s seconds",
self._name,
self._updateInterval,
)
await self.schedule_update()

async def schedule_update(self):
logger.info("Updating %s at %s", self._name, datetime.now())
logger.debug("Updating %s at %s", self._name, datetime.now())

url = f"https://api.binance.com/api/v3/ticker?symbol={self._symbol}"
try:
Expand Down

0 comments on commit 717751a

Please sign in to comment.