That appears to be false. This [1] tells how if they couldn't explain the feature on the reference card, they'd change the code. So the code came first.
> The Nest thermostat started as a press release.
From what I can tell, the product was announced in a Verge article[2] where there is a demo-able product. And the secret to their success, according to the article, was that it was designed by people who'd worked on phones.
From what I can tell, actual product documentation came last in both cases, exactly as we'd expect.
So the article starts with a double-barrel blast of bullshit. In the article's favor, they did write the bullshit down, though.
[1] https://landley.net/history/mirror/apple2/implementingvisica...
[2] https://www.theverge.com/2011/11/14/2559567/tony-fadell-nest...