<human>: Question: What was the name of William IV's heir?
Answer: Thus, Hanover passed to William IV's brother, Ernest Augustus, and remained a kingdom until 1866, when it was annexed by Prussia during the Austro-Prussian war.
 Is the question answered in a satisfactory fashion?

OPTIONS:
- yes
- no
<bot>: no