Change attributes in new Mercedes Me component (#12147)

* Fix wrong component doc URL

* Change attributes to lowercase snakecase

* pylint fix

* Remove test comments
This commit is contained in:
Rene Nulsch authored and Anders Melchiorsen committed 2018-02-05 23:29:19 +01:00
1 parent c72460ccf0
commit 323fe87b57
4 files changed
+56 -62

No files matched your search

@@ -2,7 +2,7 @@
Support for Mercedes cars with Mercedes ME.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mercedesme/
https://home-assistant.io/components/device_tracker.mercedesme/
"""
import logging
from datetime import timedelta
@@ -38,13 +38,12 @@ class MercedesMEDeviceTracker(object):
def __init__(self, hass, config, see, data):
"""Initialize the Mercedes ME device tracker."""
self.hass = hass
self.see = see
self.data = data
self.update_info()
track_time_interval(
self.hass, self.update_info, MIN_TIME_BETWEEN_SCANS)
hass, self.update_info, MIN_TIME_BETWEEN_SCANS)
@Throttle(MIN_TIME_BETWEEN_SCANS)
def update_info(self, now=None):