Skip to content

Commit

Permalink
Remove 'volume' from return dict (#15842)
Browse files Browse the repository at this point in the history
#15271

intraday results do not return the volume. See https://www.alphavantage.co/documentation/#intraday
  • Loading branch information
mattwing authored and fabaff committed Aug 5, 2018
1 parent 6a32b9b commit 9a84f8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions homeassistant/components/sensor/alpha_vantage.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
ATTR_CLOSE = 'close'
ATTR_HIGH = 'high'
ATTR_LOW = 'low'
ATTR_VOLUME = 'volume'

CONF_ATTRIBUTION = "Stock market information provided by Alpha Vantage"
CONF_FOREIGN_EXCHANGE = 'foreign_exchange'
Expand Down Expand Up @@ -148,7 +147,6 @@ def device_state_attributes(self):
ATTR_CLOSE: self.values['4. close'],
ATTR_HIGH: self.values['2. high'],
ATTR_LOW: self.values['3. low'],
ATTR_VOLUME: self.values['5. volume'],
}

@property
Expand Down

0 comments on commit 9a84f8b

Please sign in to comment.