stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Doing correct state type check #102

Closed coeing closed 3 years ago

coeing commented 3 years ago

Closes #101

Store expected state type inside a member instead of a static variable.

The static variable was stored in the base class, so it was only initialized once even for different state types.

Lyann commented 3 years ago

Hmm, didn't thought much over the code and the static variable;)

Thank you very much looks great with the patch, values look ok ;)