def __eq__(self, other):
    'Compare template with another.'
    return ((self.__class__ == other.__class__) and (self.template == other.template) and (self.hass == other.hass))
Compare template with another.
def __eq__(self, other):
    
    return ((self.__class__ == other.__class__) and (self.template == other.template) and (self.hass == other.hass))