app/extras/undervolt.py
def read_ac_state():
    """
    Returns True if AC is connected, else False
    """
    if AC_STATE_NODE:
        return open(AC_STATE_NODE).read() == '1\n'
    # Assume no battery if the /sys entry is missing.
    return True

    Returns True if AC is connected, else False
    
Returns True if AC is connected, else False
Returns True if AC is connected else False
def read_ac_state():
    if AC_STATE_NODE:
        return open(AC_STATE_NODE).read() == '1\n'
    return True
def read_ac_state ( ) : if AC_STATE_NODE : return open ( AC_STATE_NODE ) . read ( ) == '1\n' return True
Returns True if AC is connected, else False
Returns True if AC is connected else False
"""
    Returns True if AC is connected, else False
    """ # Assume no battery if the /sys entry is missing.