'this method is normally called before the ha_router object is fully
initialized'

def is_router_master(self):

    if (self.router.get('_ha_state') == 'active'):
        return True
    else:
        return False
