Files
home-assistant-core/homeassistant/components/sensor
Marcelo Moreira de Mello 6330d9cde6 Fixed Fitbit resting heart rate attribute (#3835)
* Fixed Fitbit restingHeartRate field to grab the correct field from dictionary

In [31]: r['activities-heart'][-1].get('value')
Out[31]:
{'customHeartRateZones': [],
 'heartRateZones': [{'caloriesOut': 126.18348,
   'max': 94,
   'min': 30,
   'minutes': 67,
   'name': 'Out of Range'},
  {'caloriesOut': 27.21339,
   'max': 131,
   'min': 94,
   'minutes': 5,
   'name': 'Fat Burn'},
  {'caloriesOut': 0, 'max': 159, 'min': 131, 'minutes': 0, 'name': 'Cardio'},
  {'caloriesOut': 0, 'max': 220, 'min': 159, 'minutes': 0, 'name': 'Peak'}],
 'restingHeartRate': 69}

In [32]: r['activities-heart'][-1].get('value').get('restingHeartRate')
Out[32]: 69

* Renamed sensor to Resting Heart Rate to match it

* Fixed lint style
2016-10-13 09:22:05 -07:00
..
2016-08-30 21:34:33 +02:00
2016-10-11 00:56:57 -07:00
2016-10-04 00:51:45 -07:00
2016-09-27 21:29:55 -07:00
…
2016-09-03 10:56:41 +02:00
2016-09-27 21:29:55 -07:00
2016-08-19 00:11:56 -07:00
2016-08-22 20:51:17 -07:00
2016-09-03 20:36:21 -06:00
2016-08-24 22:35:09 -06:00
2016-09-08 18:26:50 -06:00
2016-10-01 17:35:32 +02:00
2016-09-06 08:53:21 -06:00
2016-10-03 23:21:53 +02:00
2016-09-03 17:30:21 -06:00
2016-09-17 10:29:58 -07:00
2016-09-27 21:29:55 -07:00
2016-09-13 23:10:49 -07:00
2016-09-01 19:23:26 +02:00
2016-09-03 16:45:31 -07:00
2016-08-19 14:56:10 +02:00
2016-09-23 10:28:05 +02:00
2016-10-10 19:38:20 +02:00
2016-09-03 20:21:59 -06:00
2016-09-01 22:34:07 -06:00
2016-09-27 21:29:55 -07:00
2016-10-04 21:57:40 -07:00
2016-09-14 11:58:26 +02:00
2016-10-04 20:44:32 -07:00
2016-09-04 10:32:12 -06:00
2016-10-04 22:37:45 -07:00
2016-08-04 22:44:37 -07:00
2016-09-13 21:27:43 +02:00
2016-09-06 18:28:55 -07:00