Skip to content

Commit

Permalink
Remove GTFS default name & string change
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Jan 13, 2017
1 parent 2c3f55a commit 6000c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/sensor/gtfs.py
Expand Up @@ -37,7 +37,7 @@
vol.Required(CONF_ORIGIN): cv.string,
vol.Required(CONF_DESTINATION): cv.string,
vol.Required(CONF_DATA): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_NAME): cv.string,
})


Expand Down Expand Up @@ -226,9 +226,9 @@ def update(self):
self.destination)
if not self._departure:
self._state = 0
self._attributes = {'Info': 'No more bus today'}
self._attributes = {'Info': 'No more departures today'}
if self._name == '':
self._name = (self._custom_name or "GTFS Sensor")
self._name = (self._custom_name or DEFAULT_NAME)
return

self._state = self._departure['minutes_until_departure']
Expand Down

0 comments on commit 6000c59

Please sign in to comment.