Kajkac / ZTE-MC-Home-assistant-repo

ZTE MC801A, MC888, MC889 Home assistant Custom integration
GNU General Public License v3.0
11 stars 2 forks source link

Refresh after SMS delete #14

Open MiG-41 opened 2 months ago

MiG-41 commented 2 months ago

Now when i receive SMS and entity Last SMS show it , then i press Delete SMS , and entity Last SMS still shows this SMS for some period of time (related with configuration time). Is it possible ,that just after Delete SMS there will be immidietly refresh ( so user will be not wondering ,if this command really ran or not)?

Kajkac commented 1 month ago

I will add this to next release , so that on delete it will be new data fetch trough coordinator so that data gets refreshed

Kajkac commented 1 month ago

Please test it with :

https://github.com/Kajkac/ZTE-MC-Home-assistant-repo/releases/tag/v1.0.28

this shoud now update sensors on delete and send if using, so you can test it .

MiG-41 commented 1 month ago

Just tested .... After pressing "Delete All SMS" in Last SMS entity is still last value for quite long time , and it is not a case of refreshing, it is simly waiting for "SMS check interval" time...