def _update_dimmer(self):
        set_req = self.gateway.const.SetReq
        value_type = set_req.V_DIMMER
        if value_type in self._values:
            self._brightness = round(255 * int(self._values[value_type]) / 100)
            if self._brightness == 0:
                self._state = False
            if set_req.V_LIGHT not in self._values:
                self._state = self._brightness > 0
{% critic_render obj %}
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/mysensors.py/MySensorsLight._update_dimmer--crossover with--dataset/ETHPy150Open callowayproject/django-critic/critic/templatetags/critic_tags.py/do_render