97f81ad7a667ea2aa1b292c1defbe34e689a29e5,homeassistant/components/sensor/swiss_public_transport.py,PublicTransportData,update,#PublicTransportData#,87

Before Change


                for item in connections
            ]
        except KeyError:
            return ["n/a"]

After Change


                for item in connections
            ]
            self.times.append(
                dt_util.as_local(
                    dt_util.utc_from_timestamp(
                        connections[0]["from"]["departureTimestamp"])) -
                dt_util.as_local(dt_util.utcnow()))
        except KeyError:
            self.times = ["n/a"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 97f81ad7a667ea2aa1b292c1defbe34e689a29e5
Time: 2015-10-23
Author: fabian@affolter-engineering.ch
File Name: homeassistant/components/sensor/swiss_public_transport.py
Class Name: PublicTransportData
Method Name: update


Project Name: home-assistant/home-assistant
Commit Name: e0ecb64a108db390488ef91b70279ebe42429f80
Time: 2015-04-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/sun.py
Class Name:
Method Name: next_setting


Project Name: home-assistant/home-assistant
Commit Name: e0ecb64a108db390488ef91b70279ebe42429f80
Time: 2015-04-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/sun.py
Class Name:
Method Name: next_rising