Hernandez was acquired from the Atlanta Braves on April 24 for cash considerations or a player to be named later. The 32-year-old posted a 1-0 mark with one save, a 2.23 ERA and 37 strikeouts in 38 relief appearances (36 1/3 innings) with the Angels.
Hernandez, who pitched with Arizona from 2011-13 and again in 2015, owns a 29-39 record with 21 saves and a 3.97 ERA in 417 career games with the Baltimore Orioles, Philadelphia Phillies, Angels and Diamondbacks.
Madero began his 2017 season by posting a 3-1 mark with a 3.99 ERA in five starts with Missoula in the Pioneer League before being promoted to Class A Hillsboro in the Northwest League on July 14. The 20-year-old right-hander has notched a 1-1 record with an 8.24 ERA in four starts with Hillsboro.