<s> from ztag . annotation import Annotation , Manufacturer , Type <EOL> from ztag import protocols <EOL> class RoomAlertMEI ( Annotation ) : <EOL> protocol = protocols . MODBUS <EOL> subprotocol = protocols . MODBUS . DEVICE_ID <EOL> port = None <EOL> tags = [ <EOL> Type . ENVIRONMENT_MONITOR , <EOL> Type . TEMPERATURE_MONITOR , <EOL> ] <EOL> def process ( self , obj , meta ) : <EOL> product_code = obj [ "<STR_LIT>" ] [ "<STR_LIT>" ] [ "<STR_LIT>" ] . lower ( ) <EOL> if "<STR_LIT>" in product_code : <EOL> meta . tags = self . tags <EOL> meta . global_metadata . manufacturer = Manufacturer . AVTECH <EOL> meta . global_metadata . product = "<STR_LIT>" <EOL> meta . device_type = Type . ENVIRONMENT_MONITOR <EOL> return meta </s>
