def set_volume_level(self, volume):
        """Set volume level, range 0..1."""
        volume = int(volume * 100)
        try:
            self._remote.set_volume(volume)
            self._state = STATE_ON
        except (socket.timeout, TimeoutError, __HOLE__):
            self._state = STATE_OFF
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/panasonic_viera.py/PanasonicVieraTVDevice.set_volume_level