You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up the integration, no entities get added, and in the log I find the error:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/steam_wishlist/sensor.py", line 12, in async_setup_entry
await hass.data[DOMAIN][config_entry.entry_id].async_register_component(
File "/config/custom_components/steam_wishlist/sensor_manager.py", line 136, in async_register_component
await self.coordinator.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
update_callback()
File "/config/custom_components/steam_wishlist/sensor_manager.py", line 169, in async_update_items
steam_game = get_steam_game(game_id, game)
File "/config/custom_components/steam_wishlist/util.py", line 22, in get_steam_game
normal_price = round(pricing["price"] / (100 - discount_pct), 2)
ZeroDivisionError: division by zero
To Reproduce
Steps to reproduce the behavior:
Add free games to your wishlist (I assume?)
Attempt to add the Steam Wishlist integration for your account
Check the logs
Expected behavior
I expected the entities to be created related to my wishlist, but instead got this error.
Home Assistant Version:
2022.6.5
Custom Component Version:
2.2.2
Additional context
This used to work fine for me, but I'm thinking maybe I didn't have free games in my wishlist at that time. Now, I use my wishlist to remember some free games that I haven't had a chance to install or play yet, and I'm thinking that is causing a division by 0 in the price math.
The text was updated successfully, but these errors were encountered:
Describe the bug
When setting up the integration, no entities get added, and in the log I find the error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the entities to be created related to my wishlist, but instead got this error.
Home Assistant Version:
2022.6.5
Custom Component Version:
2.2.2
Additional context
This used to work fine for me, but I'm thinking maybe I didn't have free games in my wishlist at that time. Now, I use my wishlist to remember some free games that I haven't had a chance to install or play yet, and I'm thinking that is causing a division by 0 in the price math.
The text was updated successfully, but these errors were encountered: