diff --git a/custom_components/avanza_stock/manifest.json b/custom_components/avanza_stock/manifest.json index d1a8eee..c6751b8 100644 --- a/custom_components/avanza_stock/manifest.json +++ b/custom_components/avanza_stock/manifest.json @@ -4,5 +4,5 @@ "documentation": "https://github.com/custom-components/sensor.avanza_stock", "dependencies": [], "codeowners": ["@claha"], - "requirements": ["pyavanza==0.2.1"] + "requirements": ["pyavanza==0.2.2"] } diff --git a/custom_components/avanza_stock/sensor.py b/custom_components/avanza_stock/sensor.py index 399ff3f..73f4c27 100644 --- a/custom_components/avanza_stock/sensor.py +++ b/custom_components/avanza_stock/sensor.py @@ -100,7 +100,7 @@ def unit_of_measurement(self): async def async_update(self): """Update state and attributes.""" - data = await pyavanza.get_stock(self._stock) + data = await pyavanza.get_stock_async(self._session, self._stock) self.update_data(data) def update_data(self, data):