mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Only get tracked pairs for kraken (#142877)
Only get tracked pairs Getting all available pairs leads to a too long request URL
This commit is contained in:
parent
3389ee4b80
commit
62a0932deb
@ -145,7 +145,10 @@ class KrakenData:
|
|||||||
await asyncio.sleep(CALL_RATE_LIMIT_SLEEP)
|
await asyncio.sleep(CALL_RATE_LIMIT_SLEEP)
|
||||||
|
|
||||||
def _get_websocket_name_asset_pairs(self) -> str:
|
def _get_websocket_name_asset_pairs(self) -> str:
|
||||||
return ",".join(wsname for wsname in self.tradable_asset_pairs.values())
|
return ",".join(
|
||||||
|
self.tradable_asset_pairs[tracked_pair]
|
||||||
|
for tracked_pair in self._config_entry.options[CONF_TRACKED_ASSET_PAIRS]
|
||||||
|
)
|
||||||
|
|
||||||
def set_update_interval(self, update_interval: int) -> None:
|
def set_update_interval(self, update_interval: int) -> None:
|
||||||
"""Set the coordinator update_interval to the supplied update_interval."""
|
"""Set the coordinator update_interval to the supplied update_interval."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user