I seem to recall from back in the rocketing incident that Gaza has an electric plant, but there’s reliability and capability issues. Fuel might also be an issue.
Hamas ran out of money to pay for fuel, following PA taxing that fuel... the plant shut down recently when it ran out of fuel reserves... problems with transmission lines from Egypt cut off that powe... when Israel cuts power and they begin to run out of fuel in Gaza for backup generators, pressure will build on Israel to turn the lights on (using hospitals and schools without power to make Israel look like the bad guys). No sympathy here... not when they vote Hamas into power again and again.