'Send a message to the tv.'

def send_message(self, message='', **kwargs):

    from pylgtv import PyLGTVPairException
    try:
        data = kwargs.get(ATTR_DATA)
        icon_path = (data.get(CONF_ICON, self._icon_path) if data else self._icon_path)
        self._client.send_message(message, icon_path=icon_path)
    except PyLGTVPairException:
        _LOGGER.error('Pairing    with    TV    failed')
    except FileNotFoundError:
        _LOGGER.error('Icon    %s    not    found', icon_path)
    except OSError:
        _LOGGER.error('TV    unreachable')
