Fix strange hashability error when using characteristic.attribute on the handlers