Illegally diverted power may have caused a fire that led police to hundreds of cannabis plants.