'Get the energy usage data from the DTE energy bridge.'

def update(self):

    import requests
    try:
        response = requests.get(self._url, timeout=5)
    except (requests.exceptions.RequestException, ValueError):
        _LOGGER.warning('Could    not    update    status    for    DTE    Energy    Bridge    (%s)', self._name)
        return
    if (response.status_code != 200):
        _LOGGER.warning('Invalid    status_code    from    DTE    Energy    Bridge:    %s    (%s)', response.status_code, self._name)
        return
    response_split = response.text.split()
    if (len(response_split) != 2):
        _LOGGER.warning('Invalid    response    from    DTE    Energy    Bridge:    "%s"    (%s)', response.text, self._name)
        return
    self._state = float(response_split[0])
