File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ async def _async_value(self):
107
107
raise err
108
108
return self ._value
109
109
110
- async def async_value (self ):
110
+ async def async_value (self , force : bool = False ):
111
111
async with self ._mutex :
112
- if self ._value is None :
112
+ if self ._value is None or force :
113
113
return await self .task .reset ()
114
114
return self ._value
115
115
@@ -175,7 +175,7 @@ def status_type(self) -> type[Status]:
175
175
return self ._status_type
176
176
177
177
async def get_status (self ) -> Status :
178
- data = self ._status_type .from_dict (await self .cache [CacheableAttribute .status ].async_value ())
178
+ data = self ._status_type .from_dict (await self .cache [CacheableAttribute .status ].async_value (force = True ))
179
179
if data is None :
180
180
return self ._status_type ()
181
181
return data
You can’t perform that action at this time.
0 commit comments