9bb8b2bc0023d59178c0627f6af09bfc3d7024f1,homeassistant/components/nederlandse_spoorwegen/sensor.py,NSDepartureSensor,device_state_attributes,#NSDepartureSensor#,117
Before Change
"departure_delay": False,
"departure_platform_planned": self._trips[0].departure_platform_planned,
"departure_platform_actual": None,
"arrival_time_planned": self._trips[0].arrival_time_planned.strftime(
"%H:%M"
),
"arrival_time_actual": None,
"arrival_delay": False,
"arrival_platform_platform": self._trips[0].arrival_platform_planned,
After Change
attributes["departure_delay"] = True
// Planned arrival attributes
if self._trips[0].arrival_time_planned is not None:
attributes["arrival_time_planned"] = self._trips[
0
].arrival_time_planned.strftime("%H:%M")
// Actual arrival attributes
if self._trips[0].arrival_time_actual is not None:
attributes["arrival_time_actual"] = self._trips[
0
].arrival_time_actual.strftime("%H:%M")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: home-assistant/home-assistant
Commit Name: 9bb8b2bc0023d59178c0627f6af09bfc3d7024f1
Time: 2020-02-04
Author: yarmo@protonmail.com
File Name: homeassistant/components/nederlandse_spoorwegen/sensor.py
Class Name: NSDepartureSensor
Method Name: device_state_attributes
Project Name: home-assistant/home-assistant
Commit Name: 75f1e573e4fc7487bed1f6dcaa1130710ad72d3d
Time: 2020-02-02
Author: gerben@tenhove.com
File Name: homeassistant/components/nederlandse_spoorwegen/sensor.py
Class Name: NSDepartureSensor
Method Name: update
Project Name: home-assistant/home-assistant
Commit Name: 45c997ea04a3f6910a328b465e9dde2c9a29ca17
Time: 2020-02-03
Author: yarmo@protonmail.com
File Name: homeassistant/components/nederlandse_spoorwegen/sensor.py
Class Name: NSDepartureSensor
Method Name: device_state_attributes
Project Name: openml/openml-python
Commit Name: a442688793acca9caacd8408da4ed48f507b977e
Time: 2020-09-01
Author: p.gijsbers@tue.nl
File Name: openml/runs/run.py
Class Name: OpenMLRun
Method Name: _generate_arff_dict