You were a subject of the duke of Savoy, which was also the King of Sardinia.
It belonged to Kingdom of Piedmont-Sardinia before, so I suppose they considered themselves Italian in compliance with the emerging nationalism.