mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix issue when no data, where the integer sensor value is given a string (#132123)
* Fix issue when no data, where the integer sensor value is given a string * Use None and not '0'
This commit is contained in:
parent
2d8e693cdb
commit
fc9d32ef65
@ -194,9 +194,9 @@ class IrishRailTransportData:
|
|||||||
ATTR_STATION: self.station,
|
ATTR_STATION: self.station,
|
||||||
ATTR_ORIGIN: "",
|
ATTR_ORIGIN: "",
|
||||||
ATTR_DESTINATION: dest,
|
ATTR_DESTINATION: dest,
|
||||||
ATTR_DUE_IN: "n/a",
|
ATTR_DUE_IN: None,
|
||||||
ATTR_DUE_AT: "n/a",
|
ATTR_DUE_AT: None,
|
||||||
ATTR_EXPECT_AT: "n/a",
|
ATTR_EXPECT_AT: None,
|
||||||
ATTR_DIRECTION: direction,
|
ATTR_DIRECTION: direction,
|
||||||
ATTR_STOPS_AT: stops_at,
|
ATTR_STOPS_AT: stops_at,
|
||||||
ATTR_TRAIN_TYPE: "",
|
ATTR_TRAIN_TYPE: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user