def WriteValue(self, value: str, options: list = None):
        input_value = BleUtils.parse_dbus_array(value)

        try:
            self.value = int(input_value)
            Utils.logger.info(f'Written value "{self.value}" to '
                              f'{self.__class__.__name__}')
        except ValueError:
            Utils.logger.error(f'Given value {input_value} is '
                               f'invalid type for an array')
    def WriteValue(self, value: str, options: list = None):
        try:
            str_value = BleUtils.parse_dbus_array(value)

            if str_value.lower() in ['1', 't', 'true']:
                Utils.logger.info('true')
                self.value = True
            else:
                self.value = False

            Utils.logger.info(f'Written value "{self.value}" to '
                              f'{self.__class__.__name__}')
        except AssertionError:
            Utils.logger.error(f'The value {value} was not valid')
    def WriteValue(self, value: str, options: list = None):
        self.value = BleUtils.parse_dbus_array(value)

        Utils.logger.info(f'Written value "{self.value}" to '
                          f'{self.__class__.__name__}')