@@ -41,50 +41,50 @@ def name(self):
41
41
@property
42
42
def condition (self ):
43
43
"""Return the current condition."""
44
- if super ().getData ("d0weer" ) is not None :
45
- return CONDITIONS_MAP [super ().getData ("d0weer" )]
44
+ if super ().get_data ("d0weer" ) is not None :
45
+ return CONDITIONS_MAP [super ().get_data ("d0weer" )]
46
46
return None
47
47
48
48
@property
49
49
def native_temperature (self ):
50
50
"""Return the temperature."""
51
- if super ().getData ("temp" ) is not None :
52
- return float (super ().getData ("temp" ))
51
+ if super ().get_data ("temp" ) is not None :
52
+ return float (super ().get_data ("temp" ))
53
53
return None
54
54
55
55
@property
56
56
def native_pressure (self ):
57
57
"""Return the pressure."""
58
- if super ().getData ("luchtd" ) is not None :
59
- return float (super ().getData ("luchtd" ))
58
+ if super ().get_data ("luchtd" ) is not None :
59
+ return float (super ().get_data ("luchtd" ))
60
60
return None
61
61
62
62
@property
63
63
def native_humidity (self ):
64
64
"""Return the humidity."""
65
- if super ().getData ("lv" ) is not None :
66
- return float (super ().getData ("lv" ))
65
+ if super ().get_data ("lv" ) is not None :
66
+ return float (super ().get_data ("lv" ))
67
67
return None
68
68
69
69
@property
70
70
def native_wind_speed (self ):
71
71
"""Return the wind speed."""
72
- if super ().getData ("windkmh" ) is not None :
73
- return float (super ().getData ("windkmh" ))
72
+ if super ().get_data ("windkmh" ) is not None :
73
+ return float (super ().get_data ("windkmh" ))
74
74
return None
75
75
76
76
@property
77
77
def wind_bearing (self ):
78
78
"""Return the wind direction."""
79
- if super ().getData ("windr" ) is not None :
80
- return WIND_DIRECTION_MAP [super ().getData ("windr" )]
79
+ if super ().get_data ("windr" ) is not None :
80
+ return WIND_DIRECTION_MAP [super ().get_data ("windr" )]
81
81
return None
82
82
83
83
@property
84
84
def native_visibility (self ):
85
85
"""Return the wind direction."""
86
- if super ().getData ("zicht" ) is not None :
87
- return float (super ().getData ("zicht" ))
86
+ if super ().get_data ("zicht" ) is not None :
87
+ return float (super ().get_data ("zicht" ))
88
88
return None
89
89
90
90
@property
@@ -96,38 +96,38 @@ def forecast(self):
96
96
for i in range (0 , 3 ):
97
97
date = today + timedelta (days = i )
98
98
condition = (
99
- CONDITIONS_MAP [super ().getData (f"d{ i } weer" )]
100
- if super ().getData (f"d{ i } weer" ) is not None
99
+ CONDITIONS_MAP [super ().get_data (f"d{ i } weer" )]
100
+ if super ().get_data (f"d{ i } weer" ) is not None
101
101
else None
102
102
)
103
103
wind_bearing = (
104
- WIND_DIRECTION_MAP [super ().getData (f"d{ i } windr" )]
105
- if super ().getData (f"d{ i } windr" ) is not None
104
+ WIND_DIRECTION_MAP [super ().get_data (f"d{ i } windr" )]
105
+ if super ().get_data (f"d{ i } windr" ) is not None
106
106
else None
107
107
)
108
108
temp_low = (
109
- float (super ().getData (f"d{ i } tmin" ))
110
- if super ().getData (f"d{ i } tmin" ) is not None
109
+ float (super ().get_data (f"d{ i } tmin" ))
110
+ if super ().get_data (f"d{ i } tmin" ) is not None
111
111
else None
112
112
)
113
113
temp = (
114
- float (super ().getData (f"d{ i } tmax" ))
115
- if super ().getData (f"d{ i } tmax" ) is not None
114
+ float (super ().get_data (f"d{ i } tmax" ))
115
+ if super ().get_data (f"d{ i } tmax" ) is not None
116
116
else None
117
117
)
118
118
precipitation_probability = (
119
- float (super ().getData (f"d{ i } neerslag" ))
120
- if super ().getData (f"d{ i } neerslag" ) is not None
119
+ float (super ().get_data (f"d{ i } neerslag" ))
120
+ if super ().get_data (f"d{ i } neerslag" ) is not None
121
121
else None
122
122
)
123
123
wind_speed = (
124
- float (super ().getData (f"d{ i } windkmh" ))
125
- if super ().getData (f"d{ i } windkmh" ) is not None
124
+ float (super ().get_data (f"d{ i } windkmh" ))
125
+ if super ().get_data (f"d{ i } windkmh" ) is not None
126
126
else None
127
127
)
128
128
sun_chance = (
129
- float (super ().getData (f"d{ i } zon" ))
130
- if super ().getData (f"d{ i } zon" ) is not None
129
+ float (super ().get_data (f"d{ i } zon" ))
130
+ if super ().get_data (f"d{ i } zon" ) is not None
131
131
else None
132
132
)
133
133
next_day = {
0 commit comments