Make Device.pubsub_*
helpers into proper decorators
#550
Labels
could_have
Specified as "could have" in the project proposal
At some point, these helpers lived outside the
Device
class and functioned as normal decorators. Now the way they're used is a bit strange, e.g.:Despite what I clearly believed in the past, it is possible to have decorators which operate correctly on member functions: https://stackoverflow.com/questions/11731136/class-method-decorator-with-self-arguments
It would be much cleaner if member functions could just be decorated with
pubsub_errors
andpubsub_broadcast
directly.The text was updated successfully, but these errors were encountered: