mirror of
https://github.com/elisspace/core.git
synced 2026-10-03 15:59:57 +00:00
Fix additional IQVIA data bug (#23931)
This commit is contained in:
@@ -106,8 +106,8 @@ class ForecastSensor(IQVIAEntity):
|
||||
if not self._iqvia.data:
|
||||
return
|
||||
|
||||
data = self._iqvia.data[self._type]['Location']
|
||||
if not data.get('periods'):
|
||||
data = self._iqvia.data[self._type].get('Location')
|
||||
if not data or not data.get('periods'):
|
||||
return
|
||||
|
||||
indices = [p['Index'] for p in data['periods']]
|
||||
|
||||
Reference in New Issue
Block a user