Sure, poor preparation at the state level and ERCOT. But this problem was set in motion a long time ago when Texas deregulated utilities, causing ERCOT to come into being in the first place.
Some of this was practically unavoidable because electricity is still an on-demand utility, but the severity of the shortfall causing people to die in their homes by not having heat for several days is a state issue.