After emulation of the cups.py script activity I identified 6 HP devices not having defined 'Family-class' in the PPD files. My printer is similar to the model M251nw which has defined 'Family-class' as array ['Undefined'] so I did workaround which could work for all the six devices. See the patch attached.
FYI devices without Family-class defined in PPD are
('hp_pagewide_p55250')
('deskjet_950c')
('hp_laserjet_pro_mfp_m225dn')
('hp_laserjet_pro_mfp_m225dw')
('hp_laserjet_200_color_m251n')
('officejet_j3600_series')
After emulation of the cups.py script activity I identified 6 HP devices not having defined 'Family-class' in the PPD files. My printer is similar to the model M251nw which has defined 'Family-class' as array ['Undefined'] so I did workaround which could work for all the six devices. See the patch attached.
FYI devices without Family-class defined in PPD are p55250' ) pro_mfp_ m225dn' ) pro_mfp_ m225dw' ) 200_color_ m251n') j3600_series' )
('hp_pagewide_
('deskjet_950c')
('hp_laserjet_
('hp_laserjet_
('hp_laserjet_
('officejet_