Fix additional IQVIA data bug (#23931)
parent
03a0a3572b
commit
1b5f526e09
|
@ -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']]
|
||||
|
|
Loading…
Reference in New Issue