def set_hint_byte(self, key, value): """Set a hint with a dbus byte value. The input value can be an integer or a bytes string of length 1. """ self.hints[key] = dbus.Byte(value)