But then they arrive. There is no hint of electrcity. They are surprised, but not too much. After all, it is an old castle. They might casually mention it to their friends, who realize that they have a good point. Eventually, the teachers find out. They look into it, and it seems cool, even though Edison is merely a really clever Muggle. They decide to try it out. One of them buys a couple of lightbulbs and some sort of hand-cranked electric generator (I'm sure they could find one somewhere). They bring it to Hogwarts, everyone all excited, even the snobbish purebloods, and try to get it to work. For second, the lightbulb glows prettily. Everyone oohs and ahs. Then, it promptly explodes. Just in case it was a fluke, they try irit again. Still doesn't work. Convinced that electricty will never amount to a thing, they give up trying.
Zoom ahead to a few years. People pretty much accept there's no electricity at Hogwarts now, as even if it would work, they somehow would have to casually subscribe to an electric company to provide it with power without anyone noticing, and then they'd deal withnoticing; after all the purebloods complaining that they miss the candles. Life goes on. Soon, handheld electronic devices becomemuggles only see a thing. Maybe those '80s huge cellphonesdecrepit ruin saying "Danger! Do not enter, or even pocket calculators from as early as the 1970sunsafe!" (they MUST teach math atGoF Chapter 11 pg 166). It would be hard to explain to a SCHOOLmuggle contractor that you need to wire a decrepit ruin, riiiight.and furthermore, that the ruin would run up a high electric bill monthly.
However, they do notice the presence of electric things.?) As seen in this: https://web.archive.org/web/20060316221619/http://www.jkrowling.com/textonly/en/faq_view.cfm?id=81
archived FAQ with Rowling, the camera and radio are brought in. None of them seemboth adapted to work around magic. BefuddledTherefore, some ambitious math nerds readthey must have realized at some old records to see if anything had previously happened like this. They see the lightbulb experiment, and point it out to a teacher. It is decided that electricity won't work because magic, and Bathilda messes with electricity. As electricity mainly is immediately notified to include this tidbit inruined by the new editionoverbearing presence of her book. Soonmagic, it becomes common knowledge, not that anyone would know it but wizard/witch children. Every yearonly really matter in places like Hogwarts or the Ministry of Magic, oblivious muggle bornswhich is why it would strut into school with fancy phones, laptopsonly be included in text such as "Hogwarts: A History", Nintendo-whateversexplaining why Ron wouldn't realize that bugging Rita Skeeter (GoF, and TI-84s all hyped to learn magicChapter 28, only to learn they have to live without the Internet for seven yearspage 547 in my edition) is pointless.
Still, eventually they forget, asonly children who are aware magic is AWESOME, and conveniently forgetexist would know that electricty doesn't tend to tellwork around it. Muggle-borns would probably bring all their younger siblings thatelectronics with them, blissfully unaware until their iPhones will bet set aflame the first time they try to check Instagramexplode, much to the entertainment of their wizard/witch friends.
[So, OK, none of this This is remotely conanhow at least wizard children are kept aware of progressing technology in any waythe world. As far as adults go, most don't care, but whatever happenedthere is always the occasional Arthur Weasley who will go and collect plugs and batteries (GoF, it was probably something along those linesChapter 4, page 46 my edition) and whatnot.]