Answer: Edison
The Potts' dog was called Edison, presumably after the inventor.
It was Edison who accidentally discovered that the sweets with holes in them could play music when he ate a discarded one on the floor. Later, when the family was in the sweet factory, Edison heard the whistling sweets and, along with other dogs, rushed into the factory, ruining Caractacus' pitch.