-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GatewayAction sensor not reset to default #284
Fix GatewayAction sensor not reset to default #284
Conversation
@EricCorleone any option? |
As far as I know, the "unknown" state only appears when you reboot your HA and no event has been reported yet, and it should be the empty value |
I can change it to |
I'm not sure if you are talking about frontend display, because when the state is |
d7eb069
to
ab4ecde
Compare
@niceboygithub @EricCorleone I've change the default value for the vibration sensor to Thanks |
Sorry I forgot to mention that using the empty string |
Hi, sorry you might miss understood from my previous reply, when the state is The default values might be able to be like ![]() |
The And the reason I prefer the empty string over "unknown" is simply because it looks better, but both are ok I guess (also I don't think I will use the empty/unknown state in automations). |
Hey Eric yeah I've also tested the |
Both |
ab4ecde
to
b1399f3
Compare
@Necroneco Thanks for pointing it out I've modify the branch to just moved |
But this is not much different from #280. Currently, only these two classes need this method. |
@Necroneco I’m not sure if there are other devices that got effected as I don’d have a large variety to test against. And yeah merging both should be fine, I was just thinking to reduce duplicate code. ^_^ |
lumi.vibration.aq1
)reset_state
intoGatewayBinarySensor
class .Thank you @niceboygithub