I need to prove that $ H\left(X|Y\right)=H\left(X\right)\Rightarrow X\perp Y $ where $X\perp Y $ means they are independent. $$ H\left(X|Y\right)=-\sum_{x}\sum_{y}P\left(x,y\right)\log_{2}P\left(x|y\right) $$ $$ H\left(X\right)=-\sum_{x}P\left(x\right)\log_{2}P\left(x\right) $$
How do I prove it? the other direction is easy but I can't seem to find how to do this one.
I know that $$ H\left(X|Y\right)=H\left(X,Y\right)-H\left(Y\right) $$ But It does not seem to help me progress anywhere.